fixes for windows

This commit is contained in:
Sergei Golubchik 2010-10-26 07:37:44 +02:00
parent 04a4b43346
commit 7c24e8d54d
2 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,8 @@
INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}/extra/libevent
${CMAKE_SOURCE_DIR}/extra/libevent/compat
${CMAKE_SOURCE_DIR}/extra/libevent/WIN32-Code)
${CMAKE_SOURCE_DIR}/extra/libevent/WIN32-Code
${CMAKE_SOURCE_DIR}/include)
IF(MSVC)
ADD_DEFINITIONS("-DWIN32 -DHAVE_CONFIG_H")

View File

@ -159,6 +159,8 @@
extern "C" {
#endif
#include <my_attribute.h>
#include <event-config.h>
#ifdef _EVENT_HAVE_SYS_TYPES_H
#include <sys/types.h>