From 078affa92c4f21957094e3e432af55f4df10bbaf Mon Sep 17 00:00:00 2001 From: Tom Jones Date: Mon, 29 Jan 2024 15:23:23 +0000 Subject: vnet: include platform specific un.h On FreeBSD define UNIX_PATH_MAX so it is available in punt.c. FreeBSD's max path is 4 bytes shorter than Linux's. Type: improvement Change-Id: I2c4b7aa11246213575b557fab44669706885e6b7 Signed-off-by: Tom Jones --- src/vnet/ip/punt.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/vnet/ip') diff --git a/src/vnet/ip/punt.h b/src/vnet/ip/punt.h index 09e6e7393d6..e8495caad61 100644 --- a/src/vnet/ip/punt.h +++ b/src/vnet/ip/punt.h @@ -20,7 +20,12 @@ #ifndef included_punt_h #define included_punt_h +#ifdef __linux__ #include +#elif __FreeBSD__ +#include +#define UNIX_PATH_MAX SUNPATHLEN +#endif /* __linux__ */ #include #include -- cgit 1.2.3-korg