summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-09-05 14:00:43 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-09-05 14:00:43 +0200
commiteb1a37eb3dedb7bce6635faccc11ad83229e0622 (patch)
tree3aff7d4b34bc656bbe68ce549f42e5d414c6e105
parenta91b86f9561ed80b31cbe6c1d16237f5f835f845 (diff)
downloadcrawler-eb1a37eb3dedb7bce6635faccc11ad83229e0622.tar.gz
crawler-eb1a37eb3dedb7bce6635faccc11ad83229e0622.tar.bz2
fixed syslog logger on Windows
-rwxr-xr-xsrc/Makefile.W321
-rwxr-xr-x[-rw-r--r--]src/SyslogSink.cpp2
-rwxr-xr-xtests/logger/Makefile.W323
3 files changed, 4 insertions, 2 deletions
diff --git a/src/Makefile.W32 b/src/Makefile.W32
index fa6da19..6fe442f 100755
--- a/src/Makefile.W32
+++ b/src/Makefile.W32
@@ -13,6 +13,7 @@ INCLUDE_DIRS = \
INCLUDE_LDFLAGS = \
INCLUDE_LIBS = \
+ Ws2_32.lib
LOCAL_STATIC_LIB_OBJS = \
win32\errormsg.obj \
diff --git a/src/SyslogSink.cpp b/src/SyslogSink.cpp
index 42b1ae3..5f9715e 100644..100755
--- a/src/SyslogSink.cpp
+++ b/src/SyslogSink.cpp
@@ -3,7 +3,7 @@
#ifndef _WIN32
#include <syslog.h>
#else
-#inclue "win32/syslog_win32.h"
+#include "win32/syslog_win32.h"
#endif
using namespace std;
diff --git a/tests/logger/Makefile.W32 b/tests/logger/Makefile.W32
index e6353ee..d9dd951 100755
--- a/tests/logger/Makefile.W32
+++ b/tests/logger/Makefile.W32
@@ -14,7 +14,8 @@ INCLUDE_DIRS = \
INCLUDE_LDFLAGS = \
INCLUDE_LIBS = \
- $(TOPDIR)\src\crawler.lib
+ $(TOPDIR)\src\crawler.lib \
+ Ws2_32.lib
TEST_CPP_BINS = \
test1.exe