aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2024-04-01 12:25:36 +0200
committerKarel Zak <kzak@redhat.com>2024-04-01 12:25:36 +0200
commit3f4857f7b5d6f21ebcd9dacba6df49bc79a5ca10 (patch)
treedeb6ab1882b55a1fdaeef132f85b9c513e8eb948
parentc35286ced6cbad65cad616ec9af9fbd4df748ebe (diff)
parent640754e29475a22fb19082dbd5cd587edc05e4b7 (diff)
downloadutil-linux-3f4857f7b5d6f21ebcd9dacba6df49bc79a5ca10.tar.gz
Merge branch 'meson-fix-def-environ' of https://github.com/jwillikers/util-linux
* 'meson-fix-def-environ' of https://github.com/jwillikers/util-linux: meson: Don't define HAVE_ENVIRON_DECL when environ is unavailable
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 48a82780b5..91726da86d 100644
--- a/meson.build
+++ b/meson.build
@@ -456,7 +456,7 @@ have_cpu_set_t = cc.sizeof('cpu_set_t', prefix : '#define _GNU_SOURCE\n#include
conf.set('HAVE_CPU_SET_T', have_cpu_set_t ? 1 : false)
have = cc.has_header_symbol('unistd.h', 'environ', args : '-D_GNU_SOURCE')
-conf.set10('HAVE_ENVIRON_DECL', have)
+conf.set('HAVE_ENVIRON_DECL', have ? 1 : false)
have = cc.has_header_symbol('signal.h', 'sighandler_t', args : '-D_GNU_SOURCE')
conf.set('HAVE_SIGHANDLER_T', have ? 1 : false)