mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-15 19:13:18 +00:00
Define SIGPIPE for Win32, fix sleep() for Win32
This commit is contained in:
1 parent
38d7799ffa
commit
bad05485d0
2 files changed
+10
-2
No files matched your search
+5
-1
@@ -468,7 +468,7 @@ typedef int socklen_t;
|
|||||||
(((errcode) < 0) && (WSAGetLastError() == WSAECONNRESET))
|
(((errcode) < 0) && (WSAGetLastError() == WSAECONNRESET))
|
||||||
|
|
||||||
#define realpath(a, b) _fullpath((b), (a), MG_PATH_MAX)
|
#define realpath(a, b) _fullpath((b), (a), MG_PATH_MAX)
|
||||||
#define sleep(x) Sleep(x)
|
#define sleep(x) Sleep((x) *1000)
|
||||||
#define mkdir(a, b) _mkdir(a)
|
#define mkdir(a, b) _mkdir(a)
|
||||||
|
|
||||||
#ifndef S_ISDIR
|
#ifndef S_ISDIR
|
||||||
@@ -479,6 +479,10 @@ typedef int socklen_t;
|
|||||||
#define MG_ENABLE_DIRLIST 1
|
#define MG_ENABLE_DIRLIST 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef SIGPIPE
|
||||||
|
#define SIGPIPE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+5
-1
@@ -94,7 +94,7 @@ typedef int socklen_t;
|
|||||||
(((errcode) < 0) && (WSAGetLastError() == WSAECONNRESET))
|
(((errcode) < 0) && (WSAGetLastError() == WSAECONNRESET))
|
||||||
|
|
||||||
#define realpath(a, b) _fullpath((b), (a), MG_PATH_MAX)
|
#define realpath(a, b) _fullpath((b), (a), MG_PATH_MAX)
|
||||||
#define sleep(x) Sleep(x)
|
#define sleep(x) Sleep((x) *1000)
|
||||||
#define mkdir(a, b) _mkdir(a)
|
#define mkdir(a, b) _mkdir(a)
|
||||||
|
|
||||||
#ifndef S_ISDIR
|
#ifndef S_ISDIR
|
||||||
@@ -105,4 +105,8 @@ typedef int socklen_t;
|
|||||||
#define MG_ENABLE_DIRLIST 1
|
#define MG_ENABLE_DIRLIST 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef SIGPIPE
|
||||||
|
#define SIGPIPE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
Reference in new issue
Block a user