mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-08 13:48:01 +02:00
Fix gcc compile error: redundant redeclaration of ‘environ’ [-Werror=redundant-decls]
Cherry picked from dbus/dbus!227
This commit is contained in:
parent
05cc895444
commit
e8b34b419e
1 changed files with 5 additions and 0 deletions
|
|
@ -545,6 +545,11 @@ set(DBUS_DAEMON_NAME "dbus-daemon" CACHE STRING "The name of the dbus daemon exe
|
|||
|
||||
#include(ConfigureChecks.cmake)
|
||||
|
||||
# only defined but expected as boolean
|
||||
if(DEFINED HAVE_DECL_ENVIRON)
|
||||
set(HAVE_DECL_ENVIRON 1)
|
||||
endif()
|
||||
|
||||
# compiler definitions
|
||||
add_definitions(-DHAVE_CONFIG_H)
|
||||
add_definitions(${DBUS_BUS_CFLAGS})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue