]> granicus.if.org Git - libevent/commitdiff
Instead of read/write in regress.c, use send/recv. Now all of the win32 regression...
authorNick Mathewson <nickm@torproject.org>
Fri, 12 Oct 2007 18:02:56 +0000 (18:02 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 12 Oct 2007 18:02:56 +0000 (18:02 +0000)
svn:r461

test/regress.c

index 9366496f0fc45386db37e7a82da020f25a65407b..7b2f9916c50afb09064e082ac055aaf0409c95fe 100644 (file)
@@ -81,6 +81,11 @@ static struct event_base *global_base;
 #define SHUT_WR 1
 #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
 simple_read_cb(int fd, short event, void *arg)
 {