$NetBSD: patch-ab,v 1.6 2005/09/04 20:00:09 tonio Exp $ --- lib/pty.c.orig 2005-01-04 14:32:11.000000000 +0100 +++ lib/pty.c @@ -61,7 +61,7 @@ _gftp_ptys_open (int fdm, int fds, char #elif HAVE_GRANTPT -#ifndef __FreeBSD__ +#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)) #include #endif