]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Add configure check for pipe2 to cmake build system.
authorRalf Habacker <ralf.habacker@freenet.de>
Tue, 14 Oct 2014 14:18:54 +0000 (16:18 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Fri, 17 Oct 2014 12:45:30 +0000 (14: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 d290b0f2f2e337a8b6c110ad7fa9ccdfa6b3ee90..2c4b8d23435568b0593b7e4a3108e594355fb224 100644 (file)
@@ -36,6 +36,8 @@ check_symbol_exists(setlocale    "locale.h"         HAVE_SETLOCALE)          #
 check_symbol_exists(localeconv   "locale.h"         HAVE_LOCALECONV)         #  dbus-sysdeps.c
 check_symbol_exists(strtoll      "stdlib.h"         HAVE_STRTOLL)            #  dbus-send.c
 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_struct_member(cmsgcred cmcred_pid "sys/types.h sys/socket.h" HAVE_CMSGCRED)   #  dbus-sysdeps.c
 
index eaec1e982ec2b95654cd1d376a0ba44c98846748..f26e25445c7b2bacc13512f6d01b8fc3d8d9ca20 100644 (file)
 /* Define to 1 if you have strtoull */
 #cmakedefine   HAVE_STRTOULL 1
 
+/* Define to 1 if you have pip2 */
+#cmakedefine   HAVE_PIPE2
+
 // structs
 /* Define to 1 if you have struct cmsgred */
 #cmakedefine    HAVE_CMSGCRED 1