--- rxvt-unicode/src/ptytty.C 2004/02/13 12:16:21 1.6 +++ rxvt-unicode/src/ptytty.C 2004/04/08 20:31:45 1.11 @@ -1,9 +1,10 @@ /*--------------------------------*-C-*---------------------------------* - * File: ptytty.c + * File: ptytty.C *----------------------------------------------------------------------* * * All portions of code are copyright by their respective author/s. * Copyright (c) 1999-2001 Geoff Wing + * Copyright (c) 2004 Marc Lehmann * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,9 +27,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 +44,7 @@ # include #endif #if defined(HAVE_STRING_H) -# include +# include #endif #ifdef HAVE_FCNTL_H # include @@ -48,6 +55,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)