mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Fix win32 build issues: sleep, pid_t
This commit is contained in:
parent
cecb111bcd
commit
be7a0be816
@ -878,7 +878,11 @@ test_fork(void)
|
||||
}
|
||||
|
||||
/* wait for the child to read the data */
|
||||
#ifdef _WIN32
|
||||
Sleep(1000);
|
||||
#else
|
||||
sleep(1);
|
||||
#endif
|
||||
|
||||
if (write(pair[0], TEST1, strlen(TEST1)+1) < 0) {
|
||||
tt_fail_perror("write");
|
||||
|
@ -118,7 +118,9 @@ int _test_ai_eq(const struct evutil_addrinfo *ai, const char *sockaddr_port,
|
||||
|
||||
long timeval_msec_diff(const struct timeval *start, const struct timeval *end);
|
||||
|
||||
#ifndef _WIN32
|
||||
pid_t regress_fork(void);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user