Have util-internal.h define socklen_t if we need it, and include it appropriately. This fixes win32 compilation.

svn:r1070
This commit is contained in:
Nick Mathewson 2009-01-29 15:09:24 +00:00
parent a0cae310d0
commit 7dd362b158
6 changed files with 10 additions and 2 deletions

View File

@ -53,6 +53,7 @@
#include <string.h>
#include <assert.h>
#include "util-internal.h"
#include "event2/event.h"
#include "event2/event_struct.h"
#include "evrpc.h"

View File

@ -37,6 +37,8 @@
struct event_base;
#include <event2/thread.h>
#include "mm-internal.h"
static void *
evthread_win32_lock_create(void)
{

2
http.c
View File

@ -92,9 +92,9 @@
#include "event2/http_compat.h"
#include "event2/util.h"
#include "log-internal.h"
#include "util-internal.h"
#include "http-internal.h"
#include "mm-internal.h"
#include "util-internal.h"
#ifdef WIN32
#define strcasecmp _stricmp

View File

@ -1249,7 +1249,7 @@ test_evbuffer_reference(void)
{
struct evbuffer *src = evbuffer_new();
struct evbuffer *dst = evbuffer_new();
void *tmp;
char *tmp;
const char *data = "this is what we add as read-only memory.";
setup_test("Testing evbuffer_add_reference: ");

View File

@ -55,6 +55,7 @@
#include "event.h"
#include "evhttp.h"
#include "log-internal.h"
#include "util-internal.h"
#include "http-internal.h"
extern int pair[];

View File

@ -70,6 +70,10 @@ extern "C" {
#endif
#ifdef _EVENT_socklen_t
#define socklen_t _EVENT_socklen_t
#endif
#ifdef __cplusplus
}
#endif