From e8b34b419e44e0b95622f45c0f17487e241b1961 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Tue, 30 Nov 2021 10:14:05 +0100 Subject: [PATCH] =?utf8?q?Fix=20gcc=20compile=20error:=20redundant=20redec?= =?utf8?q?laration=20of=20=E2=80=98environ=E2=80=99=20[-Werror=3Dredundant?= =?utf8?q?-decls]?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Cherry picked from dbus/dbus!227 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d3824033..8b0cdf422 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}) -- 2.47.3