vpp: Add platform specific headers for socket and inet 52/40352/2
authorTom Jones <thj@freebsd.org>
Tue, 30 Jan 2024 09:47:05 +0000 (09:47 +0000)
committerDamjan Marion <dmarion@0xa5.net>
Sun, 18 Feb 2024 15:53:09 +0000 (15:53 +0000)
Type: improvement
Change-Id: Idcedc14089a49483d83c28a82ecb79d1b856f225
Signed-off-by: Tom Jones <thj@freebsd.org>
src/vat/json_format.h
src/vpp/api/json_format.h

index 71db79e..7712862 100644 (file)
 
 #include <vppinfra/clib.h>
 #include <vppinfra/format.h>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#endif /* __FreeBSD__ */
 #include <netinet/ip.h>
 
 /* JSON value type */
index 6321797..3cfb870 100644 (file)
 
 #include <vppinfra/clib.h>
 #include <vppinfra/format.h>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#endif /* __FreeBSD__ */
 #include <netinet/ip.h>
 
 /* JSON value type */