Fix two windows compilation bugs.

svn:r1171
This commit is contained in:
Nick Mathewson 2009-04-13 18:23:02 +00:00
parent 915193e7df
commit 4e8cdc6f08
2 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,7 @@
#define _HTTP_INTERNAL_H_ #define _HTTP_INTERNAL_H_
#include "event2/event_struct.h" #include "event2/event_struct.h"
#include "util-internal.h"
#define HTTP_CONNECT_TIMEOUT 45 #define HTTP_CONNECT_TIMEOUT 45
#define HTTP_WRITE_TIMEOUT 50 #define HTTP_WRITE_TIMEOUT 50

View File

@ -263,6 +263,7 @@ test_evbuffer_reference(void *ptr)
evbuffer_free(src); evbuffer_free(src);
} }
#ifndef WIN32
static void static void
test_evbuffer_add_file(void *ptr) test_evbuffer_add_file(void *ptr)
{ {
@ -297,6 +298,7 @@ test_evbuffer_add_file(void *ptr)
EVUTIL_CLOSESOCKET(pair[1]); EVUTIL_CLOSESOCKET(pair[1]);
evbuffer_free(src); evbuffer_free(src);
} }
#endif
static void static void
test_evbuffer_readln(void *ptr) test_evbuffer_readln(void *ptr)