Commit 86c5ca70 authored by deuce's avatar deuce
Browse files

Add SH_COMPAT defininition.

parent 1a606a19
......@@ -67,6 +67,10 @@
#define SH_DENYRW OF_SHARE_EXCLUSIVE
#endif
#ifndef SH_COMPAT
#define SH_COMPAT 0
#endif
#elif defined(__unix__)
#include <fcntl.h>
......@@ -99,6 +103,10 @@
#else
#define SH_DENYWR F_RDLCK /* shareable lock */
#endif
#ifndef SH_COMPAT
#define SH_COMPAT 0
#endif
#endif
#define chsize(fd,size) ftruncate(fd,size)
#define tell(fd) lseek(fd,0,SEEK_CUR)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment