summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-12-08 22:57:34 +0000
committerLuke Leighton <lkcl@samba.org>1999-12-08 22:57:34 +0000
commit6281c5d7a94d8f5bfec835aa147e7aa8bab15bb2 (patch)
tree90acda842b0ffc11c8c978fd14bc3e3219c723f4 /source3/include
parent6b22909bdefda362a7c45ec3780ce04e15a64c24 (diff)
downloadsamba-6281c5d7a94d8f5bfec835aa147e7aa8bab15bb2.tar.gz
samba-6281c5d7a94d8f5bfec835aa147e7aa8bab15bb2.tar.bz2
samba-6281c5d7a94d8f5bfec835aa147e7aa8bab15bb2.zip
moved sys/un.h to after sys/socket.h. done a gnu autoconf around sys/un.h
(This used to be commit b2ea37a8f1a28a825719b46354a1244b359aca2c)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/config.h.in3
-rw-r--r--source3/include/includes.h5
2 files changed, 7 insertions, 1 deletions
diff --git a/source3/include/config.h.in b/source3/include/config.h.in
index 81fe46d4d8..5f0f4526d8 100644
--- a/source3/include/config.h.in
+++ b/source3/include/config.h.in
@@ -755,6 +755,9 @@
/* Define if you have the <sys/select.h> header file. */
#undef HAVE_SYS_SELECT_H
+/* Define if you have the <sys/un.h> header file. */
+#undef HAVE_SYS_UN_H
+
/* Define if you have the <sys/socket.h> header file. */
#undef HAVE_SYS_SOCKET_H
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 1379494ecb..ee3989d028 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -55,7 +55,6 @@
#endif
-#include <sys/un.h>
#include <sys/types.h>
#ifdef TIME_WITH_SYS_TIME
@@ -97,6 +96,10 @@
#include <sys/socket.h>
#endif
+#ifdef HAVE_SYS_UN_H
+#include <sys/un.h>
+#endif
+
#ifdef HAVE_SYS_SYSCALL_H
#include <sys/syscall.h>
#elif HAVE_SYSCALL_H