From 6a4a2506e0a92e54efd33619e61339a953f9e54c Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 20 Jan 2006 11:59:06 +0000 Subject: Add -D_GNU_SOURCE to CFLAGS, else openpty picks the XOPEN variant of fd_set --- libutil/Makefile.in | 2 +- libutil/openpty.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'libutil') 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 #include #include -- cgit v1.2.3