aboutsummaryrefslogtreecommitdiffstats
path: root/src/compat.h
diff options
context:
space:
mode:
authorJoseph Mingrone <jrm@freebsd.org>2022-06-14 16:15:26 -0300
committerJason A. Donenfeld <Jason@zx2c4.com>2022-06-14 21:58:03 +0200
commit11468c59f899b3e9ce1488566dca1fe86c1753ce (patch)
treeff4d51888a4e83e260787aaad9c39e0964b24b47 /src/compat.h
parentcrypto: inline blake2s convenience function (diff)
downloadwireguard-freebsd-11468c59f899b3e9ce1488566dca1fe86c1753ce.tar.xz
wireguard-freebsd-11468c59f899b3e9ce1488566dca1fe86c1753ce.zip
compat: update version to handle sbcreatecontrol() changes
The sockbuf changes to merge two versions of sbcreatecontrol() into one occurred in b46667c63eb7 in the FreeBSD src repository. The value of __FreeBSD_version at the time of that commit was 1400059, so check for systems with a version stamp less than 1400059. Ideally __FreeBSD_version would have been bumped in b46667c63eb7, however it was set to 1400059 53 commits prior in 3a9a9c0ca44e and not bumped to 1400060 until 374 commits later in 85d7875d4291. Thus, this is not a perfect solution because CURRENT systems built from 53 possible commits that require the adjustment will still fail to build the wireguard kernel module. This is better than checking for systems with __FreeBSD_version < 1400057. In that case, there are 767 different commits a CURRENT system may be built from where the module will fail to build. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--src/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat.h b/src/compat.h
index 8567524..d55c628 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -24,7 +24,7 @@
#define COMPAT_NEED_BLAKE2S
#endif
-#if __FreeBSD_version < 1400057
+#if __FreeBSD_version < 1400059
#include <sys/sockbuf.h>
#define sbcreatecontrol(a, b, c, d, e) sbcreatecontrol(a, b, c, d)
#endif