diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-20 11:59:06 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-20 11:59:06 +0000 |
commit | 6a4a2506e0a92e54efd33619e61339a953f9e54c (patch) | |
tree | c9493d73807c658cc0d66e1e5e71554ea0843566 /libutil | |
parent | 16129810acd33d78e785bf636425a4dd9da03984 (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.in | 2 | ||||
-rw-r--r-- | libutil/openpty.c | 1 |
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> |