summaryrefslogtreecommitdiffstats
path: root/source/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-12-06 22:01:26 +0000
committerJeremy Allison <jra@samba.org>1998-12-06 22:01:26 +0000
commitee5e10e963917c0352362ec306fe7e3588996876 (patch)
treef9d4d699dabd92ec07690db2bf14ef3c4afb3527 /source/include
parent68a950a941015e776520890d28ba0488bd061a8e (diff)
downloadsamba-ee5e10e963917c0352362ec306fe7e3588996876.tar.gz
samba-ee5e10e963917c0352362ec306fe7e3588996876.tar.xz
samba-ee5e10e963917c0352362ec306fe7e3588996876.zip
Added RELIANTUNIX define for specific header file order includes for large
file support. Based on a patch from "Andrej Borsenkow" <borsenkow.msk@sni.de>. lib/pidfile.c: Changed open() to sys_open(). Jeremy.
Diffstat (limited to 'source/include')
-rw-r--r--source/include/config.h.in1
-rw-r--r--source/include/includes.h10
2 files changed, 11 insertions, 0 deletions
diff --git a/source/include/config.h.in b/source/include/config.h.in
index fe3b3e55db5..c2e684af750 100644
--- a/source/include/config.h.in
+++ b/source/include/config.h.in
@@ -84,6 +84,7 @@
#undef SCO
#undef OSF1
#undef NEXT2
+#undef RELIANTUNIX
#undef HAVE_SHARED_MMAP
#undef HAVE_SYSV_IPC
#undef HAVE_FCNTL_LOCK
diff --git a/source/include/includes.h b/source/include/includes.h
index c4f7141ec4b..bf85bcc0f4a 100644
--- a/source/include/includes.h
+++ b/source/include/includes.h
@@ -45,6 +45,16 @@
#undef HAVE_TERMIOS_H
#endif
+#ifdef RELIANTUNIX
+/*
+ * <unistd.h> has to be included before any other to get
+ * large file support on Reliant UNIX
+ */
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#endif /* RELIANTUNIX */
+
#include <sys/types.h>