xref: /freebsd/sys/dev/wg/compat.h (revision 35c87c070a2d04f06c56578b0a4b2e9c13f62be5)
1 /* SPDX-License-Identifier: MIT
2  *
3  * Copyright (C) 2021 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
4  * Copyright (c) 2022 The FreeBSD Foundation
5  *
6  * compat.h contains code that is backported from FreeBSD's main branch.
7  * It is different from support.h, which is for code that is not _yet_ upstream.
8  */
9 
10 #include <sys/param.h>
11 
12 #define COMPAT_NEED_BLAKE2S
13 
14 #if __FreeBSD_version < 1400059
15 #include <sys/sockbuf.h>
16 #define sbcreatecontrol(a, b, c, d, e) sbcreatecontrol(a, b, c, d)
17 #endif
18