From b10276ff98ee11ebef112a5a04ee749c20902a97 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 15 Mar 2014 18:25:17 +0100 Subject: m4/ucred.m4: don't define _GNU_SOURCE Not necessary anymore, because we enable this flag unconditionally now. --- m4/ucred.m4 | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'm4') 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 @@ -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 ], - [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) -- cgit v1.2.3