diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-06-10 22:28:48 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-06-10 23:37:49 +0200 |
commit | ccf37db6e6b983bafcd7a6a7abd7e066026b388f (patch) | |
tree | 659e5cdcad04edd1ac758d0946b10b3416cb00c6 | |
parent | version: bump (diff) | |
download | wireguard-freebsd-ccf37db6e6b983bafcd7a6a7abd7e066026b388f.tar.xz wireguard-freebsd-ccf37db6e6b983bafcd7a6a7abd7e066026b388f.zip |
build: include compat.h for all files
54b2075 ("build: only include compat.h for if_wg.c and fix build with an
obj directory") scoped compat.h to if_wg.c, which broke building on
12.3.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | src/Makefile | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ # WireGuard for FreeBSD -This is a kernel module for FreeBSD to support [WireGuard](https://www.wireguard.com/). It is being developed here before its eventual submission to FreeBSD 13.1 or 14. +This is a kernel module for FreeBSD to support [WireGuard](https://www.wireguard.com/). It is being developed here before its eventual submission to FreeBSD. ### Installation instructions @@ -12,7 +12,7 @@ Snapshots of this may be installed from packages: ### Building instructions -If you'd prefer to build this repo from scratch, rather than using a package, first make sure you have the latest net/wireguard-tools package installed, version ≥1.0.20210424. Then, on FreeBSD 12.1, 12.2, and 13.0: +If you'd prefer to build this repo from scratch, rather than using a package, first make sure you have the latest net/wireguard-tools package installed, version ≥1.0.20210424. Then, on FreeBSD 12.3, 13.0, 13.1, and 13.2: ``` # git clone https://git.zx2c4.com/wireguard-freebsd diff --git a/src/Makefile b/src/Makefile index 768aabb..392bd7f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -6,6 +6,6 @@ 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 -CFLAGS.if_wg.c+= -include ${.CURDIR}/compat.h +CFLAGS+= -include ${.CURDIR}/compat.h .include <bsd.kmod.mk> |