[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: BUILD: Tun detection
From: |
gnunet |
Subject: |
[gnunet] branch master updated: BUILD: Tun detection |
Date: |
Wed, 27 Sep 2023 11:22:05 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 49f413ddf BUILD: Tun detection
new 1e686575a Merge branch 'master' of git+ssh://git.gnunet.org/gnunet
49f413ddf is described below
commit 49f413ddfaa2a06bd909072dfd9563486854842d
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Wed Sep 27 11:21:53 2023 +0200
BUILD: Tun detection
---
meson.build | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/meson.build b/meson.build
index c60a5c610..a1e7aa842 100644
--- a/meson.build
+++ b/meson.build
@@ -280,24 +280,29 @@ if cc.check_header('sys/param.h')
endif
# TUN
+tun_found = false
if cc.check_header('if_tun.h')
if cc.has_header_symbol('if_tun.h', 'struct in6_ifreq')
add_project_arguments('-DIF_TUN_HDR="if_tun.h"', language : 'c')
+ tun_found = true
endif
endif
-if cc.check_header('linux/if_tun.h')
+if not tun_found and cc.check_header('linux/if_tun.h')
if cc.has_header_symbol('linux/if_tun.h', 'struct in6_ifreq')
add_project_arguments('-DIF_TUN_HDR="linux/if_tun.h"', language : 'c')
+ tun_found = true
endif
endif
-if cc.check_header('net/if_tun.h')
+if not tun_found and cc.check_header('net/if_tun.h')
if cc.has_header_symbol('net/if_tun.h', 'struct in6_ifreq')
add_project_arguments('-DIF_TUN_HDR="net/if_tun.h"', language : 'c')
+ tun_found = true
endif
endif
-if cc.check_header('net/tun/if_tun.h')
+if not tun_found and cc.check_header('net/tun/if_tun.h')
if cc.has_header_symbol('net/tun/if_tun.h', 'struct in6_ifreq')
add_project_arguments('-DIF_TUN_HDR="net/tun/if_tun.h"', language : 'c')
+ tun_found = true
endif
endif
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: BUILD: Tun detection,
gnunet <=