diff options
author | Tom Jones <thj@freebsd.org> | 2024-01-30 09:47:05 +0000 |
---|---|---|
committer | Damjan Marion <dmarion@0xa5.net> | 2024-02-18 15:53:09 +0000 |
commit | 393bfa786c56d50f3452384dbb75c1c49df434e6 (patch) | |
tree | 1d05ea4901a786adada7893d008b3f1a47aa91e7 /src | |
parent | d1e17a87389989ccc29dcd94eeef137c8b938606 (diff) |
vpp: Add platform specific headers for socket and inet
Type: improvement
Change-Id: Idcedc14089a49483d83c28a82ecb79d1b856f225
Signed-off-by: Tom Jones <thj@freebsd.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/vat/json_format.h | 5 | ||||
-rw-r--r-- | src/vpp/api/json_format.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/vat/json_format.h b/src/vat/json_format.h index 71db79eacf5..77128621d21 100644 --- a/src/vat/json_format.h +++ b/src/vat/json_format.h @@ -22,6 +22,11 @@ #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 */ diff --git a/src/vpp/api/json_format.h b/src/vpp/api/json_format.h index 63217979ccd..3cfb87032e0 100644 --- a/src/vpp/api/json_format.h +++ b/src/vpp/api/json_format.h @@ -22,6 +22,11 @@ #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 */ |