diff options
author | Max Kellermann <max@duempel.org> | 2014-03-15 18:25:17 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-03-15 18:31:54 +0100 |
commit | b10276ff98ee11ebef112a5a04ee749c20902a97 (patch) | |
tree | 932e2accdb228d6b7fbca2aa08b335f392b254c0 /m4/ucred.m4 | |
parent | 7d353bbe2a70cd7894b1f5954a37e4a07890478d (diff) |
m4/ucred.m4: don't define _GNU_SOURCE
Not necessary anymore, because we enable this flag unconditionally
now.
Diffstat (limited to 'm4/ucred.m4')
-rw-r--r-- | m4/ucred.m4 | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/m4/ucred.m4 b/m4/ucred.m4 index cdc6ea3b3..f53649985 100644 --- a/m4/ucred.m4 +++ b/m4/ucred.m4 @@ -1,5 +1,4 @@ -# Check if "struct ucred" is available. If not, try harder with -# _GNU_SOURCE. +# Check if "struct ucred" is available. # # Author: Max Kellermann <max@duempel.org> @@ -10,19 +9,6 @@ AC_DEFUN([STRUCT_UCRED],[ [struct ucred cred;], mpd_cv_have_struct_ucred=yes, mpd_cv_have_struct_ucred=no) - if test x$mpd_cv_have_struct_ucred = xno; then - # glibc 2.8 forces _GNU_SOURCE on us - AC_TRY_COMPILE( - [#define _GNU_SOURCE - #include <sys/socket.h>], - [struct ucred cred;], - mpd_cv_have_struct_ucred=yes, - mpd_cv_have_struct_ucred=no) - if test x$mpd_cv_have_struct_ucred = xyes; then - # :( - CFLAGS="$CFLAGS -D_GNU_SOURCE" - fi - fi ]) AC_MSG_RESULT($mpd_cv_have_struct_ucred) |