summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>