cpp: Fix compilation on OpenBSD by including sys/types.h

socket(2) says that this might be required on some Unixes.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@776931 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/Thrift.h b/lib/cpp/src/Thrift.h
index e077923..27a6476 100644
--- a/lib/cpp/src/Thrift.h
+++ b/lib/cpp/src/Thrift.h
@@ -25,6 +25,7 @@
 #endif
 #include <stdio.h>
 
+#include <sys/types.h>
 #include <netinet/in.h>
 #ifdef HAVE_INTTYPES_H
 #include <inttypes.h>
diff --git a/lib/cpp/src/transport/TServerSocket.cpp b/lib/cpp/src/transport/TServerSocket.cpp
index 10d3e9e..3a4387e 100644
--- a/lib/cpp/src/transport/TServerSocket.cpp
+++ b/lib/cpp/src/transport/TServerSocket.cpp
@@ -18,6 +18,7 @@
  */
 
 #include <cstring>
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/poll.h>
 #include <sys/types.h>