summaryrefslogtreecommitdiff
path: root/source4/include/system/filesys.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-02 03:13:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:13 -0500
commit6148deca663f7b6504b044120b166d6c9ae28750 (patch)
tree77cde75020079440f070a2f4450623e28ae2dd07 /source4/include/system/filesys.h
parentedbfc0f6e70150e321822365bf0eead2821551bd (diff)
downloadsamba-6148deca663f7b6504b044120b166d6c9ae28750.tar.gz
samba-6148deca663f7b6504b044120b166d6c9ae28750.tar.bz2
samba-6148deca663f7b6504b044120b166d6c9ae28750.zip
r3454: moved a few more things out if includes.h into the include/system/ include files.
this brings us down to about 11k lines of headers included with includes.h, while still retaining the speed of building with pch (This used to be commit 10188869ef072309ca580b8b933e172571fcdda7)
Diffstat (limited to 'source4/include/system/filesys.h')
-rw-r--r--source4/include/system/filesys.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/source4/include/system/filesys.h b/source4/include/system/filesys.h
index dc13e148e5..1ddb6b687c 100644
--- a/source4/include/system/filesys.h
+++ b/source4/include/system/filesys.h
@@ -99,6 +99,15 @@
#include <sys/xattr.h>
#endif
+/* Load header file for dynamic linking stuff */
+#ifdef HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#ifndef RTLD_LAZY
+#define RTLD_LAZY 0
+#endif
+
/* Some POSIX definitions for those without */
@@ -145,3 +154,10 @@
#define S_IXOTH 00001 /* execute permission: other */
#endif
+#ifndef O_ACCMODE
+#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
+#endif
+
+#ifndef HAVE_RENAME
+int rename(const char *zfrom, const char *zto);
+#endif