--- rxvt-unicode/src/ptytty.C 2004/02/13 12:16:21 1.6 +++ rxvt-unicode/src/ptytty.C 2004/04/02 20:41:01 1.10 @@ -26,9 +26,15 @@ * Try to be self-contained except for the above autoconfig'd defines */ -#include +#if 0 +#ifdef HAVE_GETPT +# define _GNU_SOURCE +#endif +#endif + +#include #ifdef HAVE_STDLIB_H -# include +# include #endif #ifdef HAVE_SYS_TYPES_H # include @@ -37,7 +43,7 @@ # include #endif #if defined(HAVE_STRING_H) -# include +# include #endif #ifdef HAVE_FCNTL_H # include @@ -48,6 +54,9 @@ #if defined(PTYS_ARE_PTMX) && !defined(__CYGWIN32__) # include /* for I_PUSH */ #endif +#ifdef HAVE_ISASTREAM +# include +#endif #ifdef DEBUG_TTY # define D_TTY(x) fprintf x ; fputc('\n', stderr) ; fflush(stderr)