mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-04 21:08:14 +02:00
build-sys: check for afunix.h
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
519dd8726e
commit
2137f511db
4 changed files with 11 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ include(CheckTypeSize)
|
|||
include(CheckCSourceCompiles)
|
||||
include(CheckCSourceRuns)
|
||||
|
||||
check_include_files("winsock2.h;afunix.h" HAVE_AFUNIX_H)
|
||||
check_include_file(alloca.h HAVE_ALLOCA_H)
|
||||
check_include_file(byteswap.h HAVE_BYTESWAP_H)
|
||||
check_include_file(crt/externs.h HAVE_CRT_EXTERNS_H)
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@
|
|||
#cmakedefine GLIB_VERSION_MAX_ALLOWED @GLIB_VERSION_MAX_ALLOWED@
|
||||
|
||||
// headers
|
||||
#cmakedefine HAVE_AFUNIX_H 1
|
||||
#cmakedefine HAVE_ALLOCA_H 1
|
||||
#cmakedefine HAVE_BYTESWAP_H 1
|
||||
#cmakedefine HAVE_CRT_EXTERNS_H 1
|
||||
|
|
|
|||
|
|
@ -430,6 +430,7 @@ sys/syscall.h
|
|||
sys/syslimits.h
|
||||
sys/time.h
|
||||
unistd.h
|
||||
winsock2.h
|
||||
ws2tcpip.h
|
||||
])
|
||||
|
||||
|
|
@ -1052,6 +1053,13 @@ if test x$dbus_win = xyes ; then
|
|||
fi
|
||||
fi
|
||||
|
||||
AC_CHECK_HEADERS([afunix.h], [], [],
|
||||
[AC_INCLUDES_DEFAULT[
|
||||
#ifdef HAVE_WINSOCK2_H
|
||||
# include <winsock2.h>
|
||||
#endif
|
||||
]])
|
||||
|
||||
AC_SUBST([NETWORK_libs])
|
||||
|
||||
AC_ARG_WITH([valgrind],
|
||||
|
|
|
|||
|
|
@ -607,6 +607,7 @@ foreach function : check_functions
|
|||
endforeach
|
||||
|
||||
check_headers = [
|
||||
'afunix.h',
|
||||
'alloca.h',
|
||||
'byteswap.h',
|
||||
'crt_externs.h',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue