]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
meson: Always define HAVE_DECL_MSG_NOSIGNAL to 1 or 0
authorSimon McVittie <smcv@collabora.com>
Tue, 28 Jun 2022 11:28:08 +0000 (12:28 +0100)
committerSimon McVittie <smcv@collabora.com>
Wed, 13 Jul 2022 19:36:13 +0000 (20:36 +0100)
This is consistent with Autotools AC_CHECK_DECLS.

Signed-off-by: Simon McVittie <smcv@collabora.com>
meson.build

index 7a8788ac60fe2268b0cab7fab53be734c35653ed..2ae2050ce82fb7e1dfb8ffe0276211cf2eb7a507 100644 (file)
@@ -618,8 +618,8 @@ config.set('DBUS_VA_COPY', va_copy)
 #### Atomic integers
 config.set10('DBUS_USE_SYNC', cc.has_function('__sync_sub_and_fetch') ? 1 : false)
 
-config.set('HAVE_DECL_MSG_NOSIGNAL',
-    cc.has_header_symbol('sys/socket.h', 'MSG_NOSIGNAL') ? 1 : false
+config.set10('HAVE_DECL_MSG_NOSIGNAL',
+    cc.has_header_symbol('sys/socket.h', 'MSG_NOSIGNAL')
 )
 config.set('HAVE_SOCKLEN_T',
     cc.has_type('socklen_t', prefix: '#include <sys/socket.h>')