Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
93fc692
)
vppinfra: Add netlink header on FreeBSD
66/40266/2
author
Tom Jones
<thj@freebsd.org>
Fri, 26 Jan 2024 14:58:18 +0000
(14:58 +0000)
committer
Damjan Marion
<dmarion@0xa5.net>
Tue, 13 Feb 2024 16:28:21 +0000
(16:28 +0000)
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>
src/vppinfra/unix-formats.c
patch
|
blob
|
history
diff --git
a/src/vppinfra/unix-formats.c
b/src/vppinfra/unix-formats.c
index
297a3fd
..
1a101e0
100644
(file)
--- 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__ */