Move _GNU_SOURCE to config.h.cmake

This commit is contained in:
Ralf Habacker 2018-10-16 22:47:18 +02:00 committed by Simon McVittie
parent 541dbab907
commit 6b41f053c5
2 changed files with 6 additions and 1 deletions

View file

@ -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)

View file

@ -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