Browse Source

Add -D_GNU_SOURCE to CFLAGS, else openpty picks the XOPEN variant of fd_set

Peter S. Mazinger 18 years ago
parent
commit
6a4a2506e0
2 changed files with 1 additions and 2 deletions
  1. 1 1
      libutil/Makefile.in
  2. 0 1
      libutil/openpty.c

+ 1 - 1
libutil/Makefile.in

@@ -5,7 +5,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
 
-CFLAGS-libutil := -DNOT_IN_libc -DIS_IN_libutil $(SSP_ALL_CFLAGS)
+CFLAGS-libutil := -DNOT_IN_libc -DIS_IN_libutil $(SSP_ALL_CFLAGS) -D_GNU_SOURCE
 
 LDFLAGS-libutil.so := $(LDFLAGS)
 

+ 0 - 1
libutil/openpty.c

@@ -17,7 +17,6 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
-#define _GNU_SOURCE
 #include <errno.h>
 #include <fcntl.h>
 #include <limits.h>