summaryrefslogtreecommitdiff
path: root/src/os_compat.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-04-12 04:07:24 +0000
committerEric Wong <normalperson@yhbt.net>2008-04-12 04:07:24 +0000
commit86d6ba077b8d183914eec1f970ddaf077b574f4b (patch)
treeb5a50e018f06200a5357e12d86df8cdec92a7e47 /src/os_compat.h
parentd4f319deafc41d000c7e249e1acfe9626dec52a8 (diff)
provide switches for TCP and unix sockets
autoconf flags for enabling and disabling TCP and unix domain socket support. Embedded machines without a TCP stack may be better off without TCP support. git-svn-id: https://svn.musicpd.org/mpd/trunk@7236 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/os_compat.h')
-rw-r--r--src/os_compat.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/os_compat.h b/src/os_compat.h
index 6409053c7..97ab02a2a 100644
--- a/src/os_compat.h
+++ b/src/os_compat.h
@@ -64,7 +64,6 @@
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <sys/un.h>
#include <pwd.h>
#include <grp.h>
#include <limits.h>
@@ -75,4 +74,8 @@
#include <sys/ipc.h>
#include <sys/shm.h>
+#ifdef HAVE_UN
+#include <sys/un.h>
+#endif
+
#endif /* OS_COMPAT_H */