diff -up gftp-2.0.18/lib/pty.c.stropts gftp-2.0.18/lib/pty.c
--- gftp-2.0.18/lib/pty.c.stropts 2008-04-02 16:22:00.000000000 -0400
+++ gftp-2.0.18/lib/pty.c 2008-04-02 16:22:45.000000000 -0400
@@ -61,10 +61,6 @@ _gftp_ptys_open (int fdm, int fds, char
#elif HAVE_GRANTPT
-#ifndef __FreeBSD__
-#include <stropts.h>
-#endif
-
char *
gftp_get_pty_impl (void)
{