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>
This commit is contained in:
parent
d0c75d8e7d
commit
ccf37db6e6
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue