Commit b10276ff authored by Max Kellermann's avatar Max Kellermann

m4/ucred.m4: don't define _GNU_SOURCE

Not necessary anymore, because we enable this flag unconditionally now.
parent 7d353bbe
# Check if "struct ucred" is available. If not, try harder with # Check if "struct ucred" is available.
# _GNU_SOURCE.
# #
# Author: Max Kellermann <max@duempel.org> # Author: Max Kellermann <max@duempel.org>
...@@ -10,19 +9,6 @@ AC_DEFUN([STRUCT_UCRED],[ ...@@ -10,19 +9,6 @@ AC_DEFUN([STRUCT_UCRED],[
[struct ucred cred;], [struct ucred cred;],
mpd_cv_have_struct_ucred=yes, mpd_cv_have_struct_ucred=yes,
mpd_cv_have_struct_ucred=no) 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) AC_MSG_RESULT($mpd_cv_have_struct_ucred)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment