From 7d353bbe2a70cd7894b1f5954a37e4a07890478d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 15 Mar 2014 18:24:46 +0100 Subject: configure.ac: always define _GNU_SOURCE on Linux Make sure glibc gives us all features. --- src/event/ServerSocket.cxx | 5 ----- src/system/fd_util.c | 4 ---- src/system/fd_util.h | 4 ---- 3 files changed, 13 deletions(-) (limited to 'src') diff --git a/src/event/ServerSocket.cxx b/src/event/ServerSocket.cxx index c465c15c8..ce70a969b 100644 --- a/src/event/ServerSocket.cxx +++ b/src/event/ServerSocket.cxx @@ -18,11 +18,6 @@ */ #include "config.h" - -#ifdef HAVE_STRUCT_UCRED -#define _GNU_SOURCE 1 -#endif - #include "ServerSocket.hxx" #include "system/SocketUtil.hxx" #include "system/SocketError.hxx" diff --git a/src/system/fd_util.c b/src/system/fd_util.c index 0e4b5663d..97ec5ba5e 100644 --- a/src/system/fd_util.c +++ b/src/system/fd_util.c @@ -29,10 +29,6 @@ #include "config.h" /* must be first for large file support */ #include "fd_util.h" -#if !defined(_GNU_SOURCE) && (defined(HAVE_PIPE2) || defined(HAVE_ACCEPT4)) -#define _GNU_SOURCE -#endif - #include #include #include diff --git a/src/system/fd_util.h b/src/system/fd_util.h index b73a2012f..3c72890e1 100644 --- a/src/system/fd_util.h +++ b/src/system/fd_util.h @@ -42,10 +42,6 @@ #include #ifndef WIN32 -#if !defined(_GNU_SOURCE) && (defined(HAVE_PIPE2) || defined(HAVE_ACCEPT4)) -#define _GNU_SOURCE -#endif - #include #endif -- cgit v1.2.3