Skip to content
Snippets Groups Projects
Commit 9f19863d authored by cmartin's avatar cmartin
Browse files

Moved SH_DENY* for unix from smbwrap.h to gen_defs.h and redefined SH_DENYNO to

2 to preserve functionality
parent f20b495e
No related branches found
No related tags found
No related merge requests found
......@@ -104,12 +104,15 @@
#elif defined(__unix__)
#include <fcntl.h>
#define O_DENYNONE 0
#define O_DENYALL 0
#define O_BINARY 0
#define SH_DENYNO 0
#define SH_DENYRW 0
#define SH_DENYWR 0
#define SH_DENYNO 2 // open() will *not* block
#define SH_DENYRW F_WRLCK // blocks on read/write
#define SH_DENYRD F_RDLCK // blocks on read
#define SH_DENYWR F_WRLCK // blocks on write (and read)
#endif
......
......@@ -53,6 +53,7 @@
/* SMB-specific */
#include "smblib.h" /* SMBCALL */
#include "smbwrap.h" /* Verify prototypes */
#include "gen_defs.h" /* SH_DENYNO */
#ifdef _WIN32
#define stat(f,s) _stat(f,s)
......
......@@ -64,11 +64,6 @@
#define chsize(fd,size) ftruncate(fd,size)
#define O_BINARY 0
#define SH_DENYNO 0
#define SH_DENYRW F_WRLCK
#define SH_DENYRD F_RDLCK
#define SH_DENYWR F_WRLCK
#endif
#ifndef BOOL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment