summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/includes.h2
-rw-r--r--source3/nsswitch/winbind_nss_config.h10
2 files changed, 11 insertions, 1 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 1c72220d4f..325880fad9 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -57,7 +57,7 @@
#ifdef RELIANTUNIX
/*
* <unistd.h> has to be included before any other to get
- * large file support on Reliant UNIX
+ * large file support on Reliant UNIX. Yes, it's broken :-).
*/
#ifdef HAVE_UNISTD_H
#include <unistd.h>
diff --git a/source3/nsswitch/winbind_nss_config.h b/source3/nsswitch/winbind_nss_config.h
index c8e43f396c..0f2008fc20 100644
--- a/source3/nsswitch/winbind_nss_config.h
+++ b/source3/nsswitch/winbind_nss_config.h
@@ -29,6 +29,16 @@
#include <config.h>
+#ifdef RELIANTUNIX
+/*
+ * <unistd.h> has to be included before any other to get
+ * large file support on Reliant UNIX. Yes, it's broken :-).
+ */
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#endif /* RELIANTUNIX */
+
#include <stdio.h>
#ifdef HAVE_STDLIB_H