OSDN Git Service

Add -D_GNU_SOURCE to CFLAGS, else openpty picks the XOPEN variant of fd_set
authorPeter S. Mazinger <ps.m@gmx.net>
Fri, 20 Jan 2006 11:59:06 +0000 (11:59 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Fri, 20 Jan 2006 11:59:06 +0000 (11:59 -0000)
libutil/Makefile.in
libutil/openpty.c

index cf3d72f..d617f71 100644 (file)
@@ -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)
 
index 7c92bfb..9a65e56 100644 (file)
@@ -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>