Add basic pledge/unveil sandbox on OpenBSD
[tinc] / src / bsd / meson.build
1 check_headers += [
2   'net/if_tap.h',
3   'net/if_tun.h',
4   'net/if_utun.h',
5   'net/tap/if_tap.h',
6   'net/tun/if_tun.h',
7 ]
8
9 check_functions += [
10   'devname',
11   'fdevname',
12 ]
13
14 src_tincd += files('device.c')
15
16 if os_name == 'openbsd'
17   subdir('openbsd')
18 endif
19
20 if os_name == 'darwin'
21   dep_tunemu = dependency('tunemu', required: opt_tunemu, static: static)
22   dep_pcap = dependency('pcap', required: opt_tunemu, static: static)
23
24   if dep_tunemu.found() and dep_pcap.found()
25     deps_tincd += [dep_tunemu, dep_pcap]
26     src_tincd += files('tunemu.c')
27     cdata.set('ENABLE_TUNEMU', 1)
28   endif
29 endif
30