mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-04 23:28:05 +02:00
Revert "Fix gcc compile error: redundant redeclaration of ‘environ’ [-Werror=redundant-decls]"
Breaks the build on FreeBSD which doens't have an environ declaration.
The CMake check_symbol_exists call sets `HAVE_DECL_ENVIRON` to an empty
variable (which means if(DEFINED) suceeds). This normalization should not
be necessary as it will be handled correctly by `#cmakedefine01`. If not,
all the other HAVE_* defines would also be wrong.
This reverts commit e8b34b419e.
This commit is contained in:
parent
25c0aff7e8
commit
d4dbde9fc5
1 changed files with 0 additions and 5 deletions
|
|
@ -625,11 +625,6 @@ 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