cpp: Add some missing includes to fix OpenBSD compilation
authorDavid Reiss <dreiss@apache.org>
Thu, 21 May 2009 02:28:27 +0000 (02:28 +0000)
committerDavid Reiss <dreiss@apache.org>
Thu, 21 May 2009 02:28:27 +0000 (02:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@776929 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/concurrency/test/ThreadFactoryTests.h
lib/cpp/src/server/TNonblockingServer.h
lib/cpp/src/transport/TFileTransport.h
lib/cpp/src/transport/TServerSocket.cpp

index 859fbaf..a98dab6 100644 (file)
@@ -24,6 +24,7 @@
 #include <concurrency/Util.h>
 
 #include <assert.h>
+#include <unistd.h>
 #include <iostream>
 #include <set>
 
index 1684b64..8506507 100644 (file)
@@ -28,6 +28,7 @@
 #include <string>
 #include <errno.h>
 #include <cstdlib>
+#include <unistd.h>
 #include <event.h>
 
 namespace apache { namespace thrift { namespace server {
index fbaf2cd..b08c5c8 100644 (file)
@@ -27,6 +27,8 @@
 #include <string>
 #include <stdio.h>
 
+#include <pthread.h>
+
 #include <boost/shared_ptr.hpp>
 
 namespace apache { namespace thrift { namespace transport {
index 9b47aa5..10d3e9e 100644 (file)
@@ -26,6 +26,7 @@
 #include <netdb.h>
 #include <fcntl.h>
 #include <errno.h>
+#include <unistd.h>
 
 #include "TSocket.h"
 #include "TServerSocket.h"