summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Jones <thj@freebsd.org>2024-01-26 14:58:18 +0000
committerDamjan Marion <dmarion@0xa5.net>2024-02-13 16:28:21 +0000
commita0b85388377913118ee8437ee23ab3d1ff4bee99 (patch)
tree08ea62007e691a86831709c159b2f3dc8eb5b1f3 /src
parent93fc6920fb089c4db7716aed3ed1efc617683646 (diff)
vppinfra: Add netlink header on FreeBSD
FreeBSD has support netlink since 13.2, but keeps its header in a slightly different place. Correctly include netlink/netlink.h for FreeBSD. Type: improvement Change-Id: Iec78ca72db74ea7f9c874e7039c7d17b6321f9dc Signed-off-by: Tom Jones <thj@freebsd.org>
Diffstat (limited to 'src')
-rw-r--r--src/vppinfra/unix-formats.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vppinfra/unix-formats.c b/src/vppinfra/unix-formats.c
index 297a3fdb8c2..1a101e04aee 100644
--- a/src/vppinfra/unix-formats.c
+++ b/src/vppinfra/unix-formats.c
@@ -67,7 +67,9 @@
#include <linux/types.h>
#include <linux/netlink.h>
#endif
-#endif
+#elif __FreeBSD__
+#include <netlink/netlink.h>
+#endif /* __linux__ */
#endif /* ! __KERNEL__ */