mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-29 05:57:27 -04:00
Instead of read/write in regress.c, use send/recv. Now all of the win32 regression tests pass, except for http and rpc.
svn:r461
This commit is contained in:
parent
e1f09dfe5c
commit
c91794e25d
@ -81,6 +81,11 @@ static struct event_base *global_base;
|
|||||||
#define SHUT_WR 1
|
#define SHUT_WR 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
#define write(fd,buf,len) send((fd),(buf),(len),0)
|
||||||
|
#define read(fd,buf,len) recv((fd),(buf),(len),0)
|
||||||
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
simple_read_cb(int fd, short event, void *arg)
|
simple_read_cb(int fd, short event, void *arg)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user