aboutsummaryrefslogtreecommitdiff
path: root/contrib/native/client/src/include
diff options
context:
space:
mode:
authorParth Chandra <pchandra@maprtech.com>2014-06-11 18:10:34 -0700
committerJacques Nadeau <jacques@apache.org>2014-08-27 13:33:48 -0700
commitd944918ff8a1f76d9b4c400512a130bff7fb2c5f (patch)
tree99ed4f6eae480a24d4f83121e4ff9793fae3cc56 /contrib/native/client/src/include
parent5a7feb9dca73bc11249210e7a241a11533f6944e (diff)
DRILL-1021: Windows build
Diffstat (limited to 'contrib/native/client/src/include')
-rw-r--r--contrib/native/client/src/include/drill/common.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/native/client/src/include/drill/common.hpp b/contrib/native/client/src/include/drill/common.hpp
index 59734dc5b..dfb04e83f 100644
--- a/contrib/native/client/src/include/drill/common.hpp
+++ b/contrib/native/client/src/include/drill/common.hpp
@@ -20,6 +20,14 @@
#ifndef _COMMON_H_
#define _COMMON_H_
+#ifdef _WIN32
+// The order of inclusion is important. Including winsock2 before everything else
+// ensures that the correct typedefs are defined and that the older typedefs defined
+// in winsock and windows.h are not picked up.
+#include <winsock2.h>
+#include <windows.h>
+#endif
+
#include <stdint.h>
#include <string>
#include <vector>