diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2014-10-14 16:18:54 +0200 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2014-10-17 14:45:30 +0200 |
commit | e8c5817a5b06e1ec5c785295f16aef881d64c7b6 (patch) | |
tree | 9d81d667944f02fefeb53c31b3680f8291629774 /cmake | |
parent | 25d13297f87a1a103dde6af81a7f0f4382f7a191 (diff) | |
download | dbus-e8c5817a5b06e1ec5c785295f16aef881d64c7b6.tar.gz |
Add configure check for pipe2 to cmake build system.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73689
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/ConfigureChecks.cmake | 2 | ||||
-rw-r--r-- | cmake/config.h.cmake | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake index d290b0f2..2c4b8d23 100644 --- a/cmake/ConfigureChecks.cmake +++ b/cmake/ConfigureChecks.cmake @@ -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 diff --git a/cmake/config.h.cmake b/cmake/config.h.cmake index eaec1e98..f26e2544 100644 --- a/cmake/config.h.cmake +++ b/cmake/config.h.cmake @@ -190,6 +190,9 @@ /* 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 |