summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-04 16:03:32 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-04 16:03:32 +0000
commitb3ee6a113e621fc94a7da67ecb8ddc361ee8e60a (patch)
treee22c9d55890d221c06552e81c5230501f2c078e7
parente34e25d907ee92063fd2466a1634b961e292cc0f (diff)
downloadsamba-b3ee6a113e621fc94a7da67ecb8ddc361ee8e60a.tar.gz
samba-b3ee6a113e621fc94a7da67ecb8ddc361ee8e60a.tar.bz2
samba-b3ee6a113e621fc94a7da67ecb8ddc361ee8e60a.zip
drat. We can't include sys/fcntl.h because that gives
conflicts. Instead use "01101" for O_CREAT|O_WRONLY|O_TRUNC. uggh. (This used to be commit cfc06af0b770d6638ba131501f9ea5a5c28cec3b)
-rw-r--r--source3/smbwrapper/wrapped.c3
-rw-r--r--source3/smbwrapper/wrapper.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbwrapper/wrapped.c b/source3/smbwrapper/wrapped.c
index 8aa3768638..a6e35563da 100644
--- a/source3/smbwrapper/wrapped.c
+++ b/source3/smbwrapper/wrapped.c
@@ -625,5 +625,6 @@ __asm__(".globl _write; _write = write");
int creat(const char *path, mode_t mode)
{
- return open(path, O_WRONLY | O_CREAT | O_TRUNC, mode);
+ /* drat, including sys/fcntl.h gives conflicts */
+ return open(path, 01101, mode);
}
diff --git a/source3/smbwrapper/wrapper.h b/source3/smbwrapper/wrapper.h
index 95f68d7ef9..fec400a724 100644
--- a/source3/smbwrapper/wrapper.h
+++ b/source3/smbwrapper/wrapper.h
@@ -34,7 +34,6 @@
#include <stdio.h>
#include <dirent.h>
#include <errno.h>
-#include <sys/fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>