mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-09 15:40:22 +01:00
Add HAVE_DECL_xxx checks to cmake build system
The first two definitions are required to fix cmake build error when compiling with -Werror=undef on Windows. The last one completes having HAVE_DECL_xxx definitions.
This commit is contained in:
parent
6b41f053c5
commit
85e6d21a0f
2 changed files with 6 additions and 0 deletions
|
|
@ -71,6 +71,9 @@ check_symbol_exists(prlimit "sys/resource.h;sys/time.h" HAVE_PRLIMIT)
|
|||
check_symbol_exists(setrlimit "sys/resource.h;sys/time.h" HAVE_SETRLIMIT)
|
||||
check_symbol_exists(vasprintf "stdio.h" HAVE_VASPRINTF)
|
||||
check_symbol_exists(vsnprintf "stdio.h" HAVE_VSNPRINTF)
|
||||
check_symbol_exists(MSG_NOSIGNAL "sys/socket.h" HAVE_DECL_MSG_NOSIGNAL)
|
||||
check_symbol_exists(environ "unistd.h" HAVE_DECL_ENVIRON)
|
||||
check_symbol_exists(LOG_PERROR "syslog.h" HAVE_DECL_LOG_PERROR)
|
||||
|
||||
check_struct_member(cmsgcred cmcred_pid "sys/types.h;sys/socket.h" HAVE_CMSGCRED) # dbus-sysdeps.c
|
||||
|
||||
|
|
|
|||
|
|
@ -315,4 +315,7 @@
|
|||
#define FD_SETSIZE @FD_SETSIZE@
|
||||
#endif
|
||||
|
||||
#cmakedefine01 HAVE_DECL_ENVIRON
|
||||
#cmakedefine01 HAVE_DECL_LOG_PERROR
|
||||
#cmakedefine01 HAVE_DECL_MSG_NOSIGNAL
|
||||
#endif // _DBUS_CONFIG_H
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue