Author: dreiss
Date: Thu May 21 02:28:27 2009
New Revision: 776929
URL: http://svn.apache.org/viewvc?rev=776929&view=rev
Log:
cpp: Add some missing includes to fix OpenBSD compilation
Modified:
incubator/thrift/trunk/lib/cpp/src/concurrency/test/ThreadFactoryTests.h
incubator/thrift/trunk/lib/cpp/src/server/TNonblockingServer.h
incubator/thrift/trunk/lib/cpp/src/transport/TFileTransport.h
incubator/thrift/trunk/lib/cpp/src/transport/TServerSocket.cpp
Modified:
incubator/thrift/trunk/lib/cpp/src/concurrency/test/ThreadFactoryTests.h
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/cpp/src/concurrency/test/ThreadFactoryTests.h?rev=776929&r1=776928&r2=776929&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/cpp/src/concurrency/test/ThreadFactoryTests.h
(original)
+++ incubator/thrift/trunk/lib/cpp/src/concurrency/test/ThreadFactoryTests.h
Thu May 21 02:28:27 2009
@@ -24,6 +24,7 @@
#include <concurrency/Util.h>
#include <assert.h>
+#include <unistd.h>
#include <iostream>
#include <set>
Modified: incubator/thrift/trunk/lib/cpp/src/server/TNonblockingServer.h
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/cpp/src/server/TNonblockingServer.h?rev=776929&r1=776928&r2=776929&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/cpp/src/server/TNonblockingServer.h (original)
+++ incubator/thrift/trunk/lib/cpp/src/server/TNonblockingServer.h Thu May 21
02:28:27 2009
@@ -28,6 +28,7 @@
#include <string>
#include <errno.h>
#include <cstdlib>
+#include <unistd.h>
#include <event.h>
namespace apache { namespace thrift { namespace server {
Modified: incubator/thrift/trunk/lib/cpp/src/transport/TFileTransport.h
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/cpp/src/transport/TFileTransport.h?rev=776929&r1=776928&r2=776929&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/cpp/src/transport/TFileTransport.h (original)
+++ incubator/thrift/trunk/lib/cpp/src/transport/TFileTransport.h Thu May 21
02:28:27 2009
@@ -27,6 +27,8 @@
#include <string>
#include <stdio.h>
+#include <pthread.h>
+
#include <boost/shared_ptr.hpp>
namespace apache { namespace thrift { namespace transport {
Modified: incubator/thrift/trunk/lib/cpp/src/transport/TServerSocket.cpp
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/cpp/src/transport/TServerSocket.cpp?rev=776929&r1=776928&r2=776929&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/cpp/src/transport/TServerSocket.cpp (original)
+++ incubator/thrift/trunk/lib/cpp/src/transport/TServerSocket.cpp Thu May 21
02:28:27 2009
@@ -26,6 +26,7 @@
#include <netdb.h>
#include <fcntl.h>
#include <errno.h>
+#include <unistd.h>
#include "TSocket.h"
#include "TServerSocket.h"