--- ex/ex_script.c.orig 2007-11-18 10:41:42.000000000 -0600 +++ ex/ex_script.c 2007-12-23 07:24:58.000000000 -0600 @@ -12,6 +12,10 @@ #include "config.h" +#ifdef __APPLE__ +#undef HAVE_SYS5_PTY +#endif + #ifndef lint static const char sccsid[] = "$Id: ex_script.c,v 10.38 2001/06/25 15:19:19 skimo Exp $ (Berkeley) $Date: 2001/06/25 15:19:19 $"; #endif /* not lint */ @@ -45,6 +49,10 @@ #include "script.h" #include "pathnames.h" +#ifdef __APPLE__ +#undef HAVE_SYS5_PTY +#endif + static void sscr_check __P((SCR *)); static int sscr_getprompt __P((SCR *)); static int sscr_init __P((SCR *));