commit | 5105b2e79d21204d13f2351dc6b973061e66b215 | [log] [tgz] |
---|---|---|
author | David Reiss <dreiss@apache.org> | Thu May 21 02:28:27 2009 +0000 |
committer | David Reiss <dreiss@apache.org> | Thu May 21 02:28:27 2009 +0000 |
tree | 7f1127a8f5198bf94b13fbb05b084c4f79e96136 | |
parent | 2ff956c605561d70a3e9a2748ab44b259234eb7f [diff] |
cpp: Add some missing includes to fix OpenBSD compilation git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@776929 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/concurrency/test/ThreadFactoryTests.h b/lib/cpp/src/concurrency/test/ThreadFactoryTests.h index 859fbaf..a98dab6 100644 --- a/lib/cpp/src/concurrency/test/ThreadFactoryTests.h +++ b/lib/cpp/src/concurrency/test/ThreadFactoryTests.h
@@ -24,6 +24,7 @@ #include <concurrency/Util.h> #include <assert.h> +#include <unistd.h> #include <iostream> #include <set>
diff --git a/lib/cpp/src/server/TNonblockingServer.h b/lib/cpp/src/server/TNonblockingServer.h index 1684b64..8506507 100644 --- a/lib/cpp/src/server/TNonblockingServer.h +++ b/lib/cpp/src/server/TNonblockingServer.h
@@ -28,6 +28,7 @@ #include <string> #include <errno.h> #include <cstdlib> +#include <unistd.h> #include <event.h> namespace apache { namespace thrift { namespace server {
diff --git a/lib/cpp/src/transport/TFileTransport.h b/lib/cpp/src/transport/TFileTransport.h index fbaf2cd..b08c5c8 100644 --- a/lib/cpp/src/transport/TFileTransport.h +++ b/lib/cpp/src/transport/TFileTransport.h
@@ -27,6 +27,8 @@ #include <string> #include <stdio.h> +#include <pthread.h> + #include <boost/shared_ptr.hpp> namespace apache { namespace thrift { namespace transport {
diff --git a/lib/cpp/src/transport/TServerSocket.cpp b/lib/cpp/src/transport/TServerSocket.cpp index 9b47aa5..10d3e9e 100644 --- a/lib/cpp/src/transport/TServerSocket.cpp +++ b/lib/cpp/src/transport/TServerSocket.cpp
@@ -26,6 +26,7 @@ #include <netdb.h> #include <fcntl.h> #include <errno.h> +#include <unistd.h> #include "TSocket.h" #include "TServerSocket.h"