WIN32: Make dup2 a NO-OP under win32.
There is something wrong with dup2 under win32 and I do not know win32 well enough to fix it, thus this workaround. Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -65,6 +65,7 @@ typedef int socklen_t;
|
||||
#define writev win32_writev
|
||||
#define strncasecmp _strnicmp
|
||||
#define strdup _strdup
|
||||
#define dup2(x, y, z) win32_dup2(x, y)
|
||||
#define poll(x, y, z) win32_poll(x, y, z)
|
||||
#define inet_pton(x,y,z) win32_inet_pton(x,y,z)
|
||||
#define sleep(x) Sleep(x * 1000)
|
||||
|
||||
Reference in New Issue
Block a user