From ccf37db6e6b983bafcd7a6a7abd7e066026b388f Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 10 Jun 2022 22:28:48 +0200 Subject: [PATCH] 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 --- README.md | 4 ++-- src/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 273803f..a59fa6b 100644 --- a/README.md +++ b/README.md @@ -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