diff options
Diffstat (limited to '')
-rw-r--r-- | syshead.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -88,6 +88,10 @@ #include <sys/socket.h> #endif +#ifdef HAVE_SYS_UN_H +#include <sys/un.h> +#endif + #ifdef HAVE_SYS_IOCTL_H #include <sys/ioctl.h> #endif @@ -516,6 +520,15 @@ socket_defined (const socket_descriptor_t sd) #endif /* + * Do we support Unix domain sockets? + */ +#if defined(PF_UNIX) && !defined(WIN32) +#define UNIX_SOCK_SUPPORT 1 +#else +#define UNIX_SOCK_SUPPORT 0 +#endif + +/* * Don't compile the struct buffer_list code unless something needs it */ #if defined(ENABLE_MANAGEMENT) || defined(ENABLE_PF) |