Need sys/types.h includes for FreeBSD
Reviewed By: dreiss
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665212 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/transport/TServerSocket.cpp b/lib/cpp/src/transport/TServerSocket.cpp
index 33367a4..ade0fd4 100644
--- a/lib/cpp/src/transport/TServerSocket.cpp
+++ b/lib/cpp/src/transport/TServerSocket.cpp
@@ -6,6 +6,7 @@
#include <sys/socket.h>
#include <sys/select.h>
+#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netdb.h>
diff --git a/lib/cpp/src/transport/TSocket.cpp b/lib/cpp/src/transport/TSocket.cpp
index a5a07b3..9615b2a 100644
--- a/lib/cpp/src/transport/TSocket.cpp
+++ b/lib/cpp/src/transport/TSocket.cpp
@@ -6,6 +6,8 @@
#include <config.h>
#include <sys/socket.h>
+#include <sys/select.h>
+#include <sys/types.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
@@ -13,7 +15,6 @@
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
-#include <sys/select.h>
#include "concurrency/Monitor.h"
#include "TSocket.h"