summaryrefslogtreecommitdiffstats
path: root/syshead.h
diff options
context:
space:
mode:
Diffstat (limited to 'syshead.h')
-rw-r--r--syshead.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/syshead.h b/syshead.h
index e87814e..1bab029 100644
--- a/syshead.h
+++ b/syshead.h
@@ -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)