From 08d2f11cbec8147e8fb13c06a1b1a91317a8272d Mon Sep 17 00:00:00 2001 From: David Reiss Date: Thu, 21 May 2009 02:28:36 +0000 Subject: [PATCH] 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 --- lib/cpp/src/Thrift.h | 1 + lib/cpp/src/transport/TServerSocket.cpp | 1 + 2 files changed, 2 insertions(+) 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 -- 2.17.1