aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-03-17 17:43:55 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2021-03-18 09:00:52 -0600
commit3874141edd2f77e13ee78371798db225b35b7c7e (patch)
tree4dcd225bf1ceb4973264d8c01e3e285c503d7f2d /src/Makefile
parentif_wg: use our own taskqgroup (diff)
downloadwireguard-freebsd-3874141edd2f77e13ee78371798db225b35b7c7e.tar.xz
wireguard-freebsd-3874141edd2f77e13ee78371798db225b35b7c7e.zip
compat: backport to FreeBSD 12.2
This should allow us to get more testing coverage earlier. This port here is also a bit janky. I really don't like the taskqgroup business, having to copy and paste those structs. And this isn't well tested, either. But, it's a start. This distinguishes between compat.h and support.h, though both header files are intended to operate in more or less the same way. It's important to keep some discipline between things that we're backporting and things that aren't _yet_ upstream or are shims for OpenBSD. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index c024ea1..e787882 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,9 +1,11 @@
# $FreeBSD$
-KMOD= if_wg
+KMOD= if_wg
SRCS= opt_inet.h opt_inet6.h device_if.h bus_if.h ifdi_if.h
-SRCS+= if_wg.c wg_noise.c wg_cookie.c crypto.c support.c
+SRCS+= if_wg.c wg_noise.c wg_cookie.c crypto.c
+
+CFLAGS+= -include compat.h
.include <bsd.kmod.mk>