diff options
author | Tom Jones <thj@freebsd.org> | 2024-03-20 09:52:16 +0000 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2024-03-20 16:44:20 +0000 |
commit | 40c95f50bae22ac47412ad640d35a14d4597b466 (patch) | |
tree | 711ccbee6b78b3b63d3e3baefa16ca471f83e79d /src/vppinfra | |
parent | 3076c69a9e99aa68e9d996cf5c4b60cdb8938b68 (diff) |
vppinfra: Define EBADFD on FreeBSD
Type: improvement
Change-Id: I303a8a7333d44f6eab902d4d61023cfa96760dd2
Signed-off-by: Tom Jones <thj@freebsd.org>
Diffstat (limited to 'src/vppinfra')
-rw-r--r-- | src/vppinfra/socket.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vppinfra/socket.h b/src/vppinfra/socket.h index 13e09e66a91..c4f0b87e3e1 100644 --- a/src/vppinfra/socket.h +++ b/src/vppinfra/socket.h @@ -41,6 +41,10 @@ #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> +#ifdef __FreeBSD__ +#include <errno.h> +#define EBADFD EBADF +#endif /* __FreeBSD__ */ #include <vppinfra/clib.h> #include <vppinfra/error.h> |