summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-04-04 17:20:57 +0000
committerJeremy Allison <jra@samba.org>2001-04-04 17:20:57 +0000
commitdcc01ec5fb16b3529afef6c13324463db37ad147 (patch)
tree98173ae4141e5554f72d1ff9d49cbe0ad53b9c82 /source3/nsswitch
parent5948fa9fe1992b54378e73f9bd17ef64f6b96ece (diff)
downloadsamba-dcc01ec5fb16b3529afef6c13324463db37ad147.tar.gz
samba-dcc01ec5fb16b3529afef6c13324463db37ad147.tar.bz2
samba-dcc01ec5fb16b3529afef6c13324463db37ad147.zip
Fix for broken RelientUNIX.
Jeremy. (This used to be commit 6808ec0d471d8b436506bbd7b9db67c28832be76)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbind_nss_config.h10
1 files changed, 10 insertions, 0 deletions
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