diff options
author | Karel Zak <kzak@redhat.com> | 2024-04-01 12:25:36 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2024-04-01 12:25:36 +0200 |
commit | 3f4857f7b5d6f21ebcd9dacba6df49bc79a5ca10 (patch) | |
tree | deb6ab1882b55a1fdaeef132f85b9c513e8eb948 | |
parent | c35286ced6cbad65cad616ec9af9fbd4df748ebe (diff) | |
parent | 640754e29475a22fb19082dbd5cd587edc05e4b7 (diff) | |
download | util-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.build | 2 |
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) |