diff options
-rw-r--r-- | src/vnet/ip/punt.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <linux/un.h> +#elif __FreeBSD__ +#include <sys/un.h> +#define UNIX_PATH_MAX SUNPATHLEN +#endif /* __linux__ */ #include <stdbool.h> #include <vnet/ip/ip.h> |