]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Add HAVE_DECL_xxx checks to cmake build system
authorRalf Habacker <ralf.habacker@freenet.de>
Tue, 8 Jan 2019 08:33:41 +0000 (09:33 +0100)
committerSimon McVittie <smcv@collabora.com>
Thu, 18 Nov 2021 12:52:22 +0000 (12:52 +0000)
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.

cmake/ConfigureChecks.cmake
cmake/config.h.cmake

index 88c856613e177613abff72614829ae10233d9c7d..7e21e0841061be4fb7f882f8092bf23a184d8650 100644 (file)
@@ -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
 
index 86b4acb0297156a657ea3785f268e4ee4b441257..a3258789bdf24eccf0b1034b5b807484a20fec1c 100644 (file)
 #define FD_SETSIZE @FD_SETSIZE@
 #endif
 
+#cmakedefine01 HAVE_DECL_ENVIRON
+#cmakedefine01 HAVE_DECL_LOG_PERROR
+#cmakedefine01 HAVE_DECL_MSG_NOSIGNAL
 #endif  // _DBUS_CONFIG_H