mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 18:08:01 +02:00
Move _GNU_SOURCE to config.h.cmake
This commit is contained in:
parent
541dbab907
commit
6b41f053c5
2 changed files with 6 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ if(GLIB2_FOUND)
|
|||
endif()
|
||||
|
||||
# analogous to AC_USE_SYSTEM_EXTENSIONS in configure.ac
|
||||
add_definitions(-D_GNU_SOURCE)
|
||||
set(_GNU_SOURCE 1)
|
||||
|
||||
# do config checks
|
||||
include(ConfigureChecks)
|
||||
|
|
|
|||
|
|
@ -243,6 +243,11 @@
|
|||
/* whether -export-dynamic was passed to libtool */
|
||||
#cmakedefine DBUS_BUILT_R_DYNAMIC 1
|
||||
|
||||
/* Enable GNU extensions on systems that have them. */
|
||||
#ifndef _GNU_SOURCE
|
||||
#cmakedefine _GNU_SOURCE 1
|
||||
#endif
|
||||
|
||||
// structs
|
||||
/* Define to 1 if you have struct cmsgred */
|
||||
#cmakedefine HAVE_CMSGCRED 1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue