From: Brad Smith Date: Mon, 3 Sep 2012 09:12:02 +0000 (+0100) Subject: Detect MSG_NOSIGNAL and SCM_RIGHTS on OpenBSD X-Git-Tag: dbus-1.6.6~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=712f148205c007e8b1de6e2e889e8257b69ca6af;p=thirdparty%2Fdbus.git Detect MSG_NOSIGNAL and SCM_RIGHTS on OpenBSD On OpenBSD, sys/socket.h requires sys/types.h to be included first. Reviewed-by: Simon McVittie Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54418 --- diff --git a/configure.ac b/configure.ac index e8fc1aef8..2e34f5653 100644 --- a/configure.ac +++ b/configure.ac @@ -766,7 +766,8 @@ dnl needed on darwin for NAME_MAX AC_CHECK_HEADERS(sys/syslimits.h) dnl Make it easy to check if we have MSG_NOSIGNAL without actually having to include sys/socket.h -AC_CHECK_DECLS([MSG_NOSIGNAL], [], [], [[ #include ]]) +AC_CHECK_DECLS([MSG_NOSIGNAL], [], [], [[ #include +#include ]]) dnl check for flavours of varargs macros (test from GLib) AC_MSG_CHECKING(for ISO C99 varargs macros in C) @@ -1220,6 +1221,7 @@ AC_SUBST([ADT_LIBS]) # Check for SCM_RIGHTS AC_MSG_CHECKING([for SCM_RIGHTS]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +#include #include #include static int x = SCM_RIGHTS;