From 9b5ce27c3b517c501bb13a534d50476e11751262 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 16 Oct 2008 14:59:26 +0200 Subject: 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 --- configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'configure.ac') 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 -- cgit v1.2.3