1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-21 18:04:06 +03:00

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)
This commit is contained in:
Andrew Tridgell 1998-10-04 16:03:32 +00:00
parent e34e25d907
commit b3ee6a113e
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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>