[gssdp/gssdp_1.0] build: Use proper syntax for config.h
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp/gssdp_1.0] build: Use proper syntax for config.h
- Date: Mon, 29 Oct 2018 15:08:16 +0000 (UTC)
commit 149306cf9b4b66b236839bc481f69f4bacbe41d1
Author: Jens Georg <mail jensge org>
Date: Mon Oct 29 16:06:08 2018 +0100
build: Use proper syntax for config.h
The code depdens on the #define / #undef semantics from autoconf. Keep
it that way
meson.build | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 114978b..d335aca 100644
--- a/meson.build
+++ b/meson.build
@@ -14,7 +14,7 @@ struct in_pktinfo pktinfo;
pktinfo_available = cc.compiles(pktinfo_test,
name : 'struct in_pktinfo is available')
-conf.set10('HAVE_PKTINFO', pktinfo_available)
+conf.set('HAVE_PKTINFO', pktinfo_available)
# Check for if_nametoindex
if_nametoindex_test = '''#include <net/if.h>
@@ -28,7 +28,7 @@ int main(int argc, char *argv[]) {
ifnametoindex_available = cc.compiles(if_nametoindex_test,
name : 'if_nametoindex is available')
-conf.set10('HAVE_IFNAMETOINDEX', ifnametoindex_available)
+conf.set('HAVE_IFNAMETOINDEX', ifnametoindex_available)
# Check for SIOCGIFINDEX
siocgifindex_test = '''#include <sys/ioctl.h>
@@ -36,7 +36,7 @@ static const int foo = SIOCGIFINDEX;
'''
siocgifindex_available = cc.compiles(siocgifindex_test,
name : 'SIOCGIFINDEX is available')
-conf.set10('HAVE_SIOCGIFINDEX', siocgifindex_available)
+conf.set('HAVE_SIOCGIFINDEX', siocgifindex_available)
configure_file(output : 'config.h', configuration : conf)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]