summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>