Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Langford <jl@hunch.net>2012-07-23 21:36:17 +0400
committerJohn Langford <jl@hunch.net>2012-07-23 21:36:17 +0400
commit0f28f055fa7af4a3659d3a5b0d1081194a73ce8b (patch)
tree303c39db9276e947c7432d5d51869c9270754eab /vowpalwabbit/sender.cc
parent8a90ca28033fcf412910c3f695dc4d057791b03b (diff)
First windows port from Chris Quirk
Diffstat (limited to 'vowpalwabbit/sender.cc')
-rw-r--r--vowpalwabbit/sender.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/vowpalwabbit/sender.cc b/vowpalwabbit/sender.cc
index 86eaf8e8..528a0483 100644
--- a/vowpalwabbit/sender.cc
+++ b/vowpalwabbit/sender.cc
@@ -1,6 +1,21 @@
#include <pthread.h>
#include <vector>
+#ifdef _WIN32
+#include <WinSock2.h>
+#ifndef SHUT_RD
+# define SHUT_RD SD_RECEIVE
+#endif
+
+#ifndef SHUT_WR
+# define SHUT_WR SD_SEND
+#endif
+
+#ifndef SHUT_RDWR
+# define SHUT_RDWR SD_BOTH
+#endif
+#else
#include <netdb.h>
+#endif
#include "io.h"
#include "parse_args.h"
#include "cache.h"