From b3ee6a113e621fc94a7da67ecb8ddc361ee8e60a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 4 Oct 1998 16:03:32 +0000 Subject: 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) --- source3/smbwrapper/wrapped.c | 3 ++- source3/smbwrapper/wrapper.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') 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 #include #include -#include #include #include #include -- cgit