mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
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:
parent
a0cae310d0
commit
7dd362b158
1
evrpc.c
1
evrpc.c
@ -53,6 +53,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
#include "util-internal.h"
|
||||||
#include "event2/event.h"
|
#include "event2/event.h"
|
||||||
#include "event2/event_struct.h"
|
#include "event2/event_struct.h"
|
||||||
#include "evrpc.h"
|
#include "evrpc.h"
|
||||||
|
@ -37,6 +37,8 @@
|
|||||||
struct event_base;
|
struct event_base;
|
||||||
#include <event2/thread.h>
|
#include <event2/thread.h>
|
||||||
|
|
||||||
|
#include "mm-internal.h"
|
||||||
|
|
||||||
static void *
|
static void *
|
||||||
evthread_win32_lock_create(void)
|
evthread_win32_lock_create(void)
|
||||||
{
|
{
|
||||||
|
2
http.c
2
http.c
@ -92,9 +92,9 @@
|
|||||||
#include "event2/http_compat.h"
|
#include "event2/http_compat.h"
|
||||||
#include "event2/util.h"
|
#include "event2/util.h"
|
||||||
#include "log-internal.h"
|
#include "log-internal.h"
|
||||||
|
#include "util-internal.h"
|
||||||
#include "http-internal.h"
|
#include "http-internal.h"
|
||||||
#include "mm-internal.h"
|
#include "mm-internal.h"
|
||||||
#include "util-internal.h"
|
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#define strcasecmp _stricmp
|
#define strcasecmp _stricmp
|
||||||
|
@ -1249,7 +1249,7 @@ test_evbuffer_reference(void)
|
|||||||
{
|
{
|
||||||
struct evbuffer *src = evbuffer_new();
|
struct evbuffer *src = evbuffer_new();
|
||||||
struct evbuffer *dst = evbuffer_new();
|
struct evbuffer *dst = evbuffer_new();
|
||||||
void *tmp;
|
char *tmp;
|
||||||
const char *data = "this is what we add as read-only memory.";
|
const char *data = "this is what we add as read-only memory.";
|
||||||
|
|
||||||
setup_test("Testing evbuffer_add_reference: ");
|
setup_test("Testing evbuffer_add_reference: ");
|
||||||
|
@ -55,6 +55,7 @@
|
|||||||
#include "event.h"
|
#include "event.h"
|
||||||
#include "evhttp.h"
|
#include "evhttp.h"
|
||||||
#include "log-internal.h"
|
#include "log-internal.h"
|
||||||
|
#include "util-internal.h"
|
||||||
#include "http-internal.h"
|
#include "http-internal.h"
|
||||||
|
|
||||||
extern int pair[];
|
extern int pair[];
|
||||||
|
@ -70,6 +70,10 @@ extern "C" {
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _EVENT_socklen_t
|
||||||
|
#define socklen_t _EVENT_socklen_t
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user