From a0b85388377913118ee8437ee23ab3d1ff4bee99 Mon Sep 17 00:00:00 2001 From: Tom Jones Date: Fri, 26 Jan 2024 14:58:18 +0000 Subject: 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 --- src/vppinfra/unix-formats.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/vppinfra/unix-formats.c') 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 #include #endif -#endif +#elif __FreeBSD__ +#include +#endif /* __linux__ */ #endif /* ! __KERNEL__ */ -- cgit 1.2.3-korg