mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-03 04:18:03 +02:00
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 <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54418
This commit is contained in:
parent
dddedfa27d
commit
712f148205
1 changed files with 3 additions and 1 deletions
|
|
@ -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 <sys/socket.h> ]])
|
||||
AC_CHECK_DECLS([MSG_NOSIGNAL], [], [], [[ #include <sys/types.h>
|
||||
#include <sys/socket.h> ]])
|
||||
|
||||
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 <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
static int x = SCM_RIGHTS;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue