summaryrefslogtreecommitdiff
path: root/libutil
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-20 11:59:06 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-20 11:59:06 +0000
commit6a4a2506e0a92e54efd33619e61339a953f9e54c (patch)
treec9493d73807c658cc0d66e1e5e71554ea0843566 /libutil
parent16129810acd33d78e785bf636425a4dd9da03984 (diff)
Add -D_GNU_SOURCE to CFLAGS, else openpty picks the XOPEN variant of fd_set
Diffstat (limited to 'libutil')
-rw-r--r--libutil/Makefile.in2
-rw-r--r--libutil/openpty.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/libutil/Makefile.in b/libutil/Makefile.in
index cf3d72f05..d617f7151 100644
--- a/libutil/Makefile.in
+++ b/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)
diff --git a/libutil/openpty.c b/libutil/openpty.c
index 7c92bfb19..9a65e56b1 100644
--- a/libutil/openpty.c
+++ b/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>