meson: Check for environ declaration

We use this in various places.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2022-06-28 12:41:51 +01:00
parent 35eca11708
commit d78d742f41

View file

@ -629,6 +629,7 @@ config.set10(
''')
)
config.set10('HAVE_DECL_ENVIRON', cc.has_header_symbol('unistd.h', 'environ'))
config.set10('HAVE_DECL_MSG_NOSIGNAL',
cc.has_header_symbol('sys/socket.h', 'MSG_NOSIGNAL')
)