projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sr.ht CI: update FreeBSD and OpenBSD image versions
[tinc]
/
src
/
linux
/
meson.build
diff --git
a/src/linux/meson.build
b/src/linux/meson.build
index
0213d06
..
5c5a273
100644
(file)
--- a/
src/linux/meson.build
+++ b/
src/linux/meson.build
@@
-1,16
+1,21
@@
check_headers += [
'linux/if_tun.h',
'netpacket/packet.h',
check_headers += [
'linux/if_tun.h',
'netpacket/packet.h',
- 'sys/epoll.h',
- 'sys/random.h',
]
]
-check_functions += [
- 'recvmmsg',
- 'getrandom',
-]
+check_functions += 'recvmmsg'
+
+src_tincd += files(
+ 'device.c',
+ 'event.c',
+)
-src_tincd += files('device.c')
+dep_libsystemd = dependency('libsystemd', required: opt_systemd)
+if dep_libsystemd.found()
+ src_tincd += files('watchdog.c')
+ deps_tincd += dep_libsystemd
+ cdata.set('HAVE_WATCHDOG', 1)
+endif
if opt_uml
src_tincd += files('uml_device.c')
if opt_uml
src_tincd += files('uml_device.c')