aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-16 14:59:26 +0200
committerMax Kellermann <max@duempel.org>2008-10-16 14:59:26 +0200
commit9b5ce27c3b517c501bb13a534d50476e11751262 (patch)
tree37e4b09727c53c8b4db69e1816814b6f5ca97a7b /configure.ac
parent3b20fa4f3f46d27d0d710d542ad75751f4c38fef (diff)
downloadmpd-9b5ce27c3b517c501bb13a534d50476e11751262.tar.gz
mpd-9b5ce27c3b517c501bb13a534d50476e11751262.tar.xz
mpd-9b5ce27c3b517c501bb13a534d50476e11751262.zip
configure.ac: check if "struct ucred" is available
By default, glibc 2.8 hides struct ucred behind the _GNU_SOURCE macro. I don't want to enable that globally, because it may encourage the use of non-portable functions. Test if "struct ucred" is available, and enable _GNU_SOURCE if required. For details about that issue, see glib's bug database: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6545
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index eceedaf09..ce50de896 100644
--- a/configure.ac
+++ b/configure.ac
@@ -308,6 +308,7 @@ fi
if test x$enable_un = xyes; then
AC_DEFINE(HAVE_UN, 1, [Define if unix domain socket support is enabled])
+ STRUCT_UCRED
fi
enable_osx=no