]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Add configure checks for accept4, dirfd, inotify_init1 and unix_fd_passing to cmake...
authorRalf Habacker <ralf.habacker@freenet.de>
Fri, 17 Oct 2014 13:42:06 +0000 (15:42 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Fri, 24 Oct 2014 14:45:07 +0000 (16:45 +0200)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73689
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
cmake/ConfigureChecks.cmake
cmake/config.h.cmake

index 2c4b8d23435568b0593b7e4a3108e594355fb224..6e8ebaeed99222c1f41a129c61185efaa3c74f58 100644 (file)
@@ -38,6 +38,10 @@ check_symbol_exists(strtoll      "stdlib.h"         HAVE_STRTOLL)            #
 check_symbol_exists(strtoull     "stdlib.h"         HAVE_STRTOULL)           #  dbus-send.c
 set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
 check_symbol_exists(pipe2        "fcntl.h;unistd.h"         HAVE_PIPE2)
+check_symbol_exists(accept4      "sys/socket.h"             HAVE_ACCEPT4)
+check_symbol_exists(dirfd        "dirent.h"                 HAVE_DIRFD)
+check_symbol_exists(inotify_init1 "sys/inotify.h"           HAVE_INOTIFY_INIT1)
+check_symbol_exists(SCM_RIGHTS    "sys/types.h;sys/socket.h;sys/un.h" HAVE_UNIX_FD_PASSING)
 
 check_struct_member(cmsgcred cmcred_pid "sys/types.h sys/socket.h" HAVE_CMSGCRED)   #  dbus-sysdeps.c
 
index f26e25445c7b2bacc13512f6d01b8fc3d8d9ca20..8789cf91369f623cb0ca3e5fa57ac0fc1210ad2d 100644 (file)
 /* Define to 1 if you have pip2 */
 #cmakedefine   HAVE_PIPE2
 
+#cmakedefine HAVE_ACCEPT4 1
+#cmakedefine HAVE_DIRFD 1
+#cmakedefine HAVE_INOTIFY_INIT1 1
+#cmakedefine HAVE_UNIX_FD_PASSING 1
+
 // structs
 /* Define to 1 if you have struct cmsgred */
 #cmakedefine    HAVE_CMSGCRED 1