mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-27 12:26:24 +00:00
removed file locking on windows, to fix the crash introduced by 52e3be5c58
This commit is contained in:
1 parent
baf4d8af27
commit
3070e8572d
1 file changed
+2
-4
+2
-4
@@ -142,10 +142,8 @@ typedef long off_t;
|
||||
#define fdopen(x, y) _fdopen((x), (y))
|
||||
#define write(x, y, z) _write((x), (y), (unsigned) z)
|
||||
#define read(x, y, z) _read((x), (y), (unsigned) z)
|
||||
#define flockfile(x) LockFileEx((HANDLE) _get_osfhandle(_fileno(x)), \
|
||||
LOCKFILE_FAIL_IMMEDIATELY | LOCKFILE_EXCLUSIVE_LOCK, 0, 0, 0, NULL)
|
||||
#define funlockfile(x) UnlockFileEx((HANDLE) _get_osfhandle(_fileno(x)), \
|
||||
0, 0, 0, NULL)
|
||||
#define flockfile(x)
|
||||
#define funlockfile(x)
|
||||
#define sleep(x) Sleep((x) * 1000)
|
||||
#define rmdir(x) _rmdir(x)
|
||||
|
||||
|
||||
Reference in new issue
Block a user