From: David Reiss Date: Thu, 21 May 2009 02:28:36 +0000 (+0000) Subject: cpp: Fix compilation on OpenBSD by including sys/types.h X-Git-Tag: 0.2.0~103 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=08d2f11cbec8147e8fb13c06a1b1a91317a8272d;p=common%2Fthrift.git 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 e0779233..27a64761 100644 --- a/lib/cpp/src/Thrift.h +++ b/lib/cpp/src/Thrift.h @@ -25,6 +25,7 @@ #endif #include +#include #include #ifdef HAVE_INTTYPES_H #include diff --git a/lib/cpp/src/transport/TServerSocket.cpp b/lib/cpp/src/transport/TServerSocket.cpp index 10d3e9ee..3a4387e8 100644 --- a/lib/cpp/src/transport/TServerSocket.cpp +++ b/lib/cpp/src/transport/TServerSocket.cpp @@ -18,6 +18,7 @@ */ #include +#include #include #include #include