commit | 08d2f11cbec8147e8fb13c06a1b1a91317a8272d | [log] [tgz] |
---|---|---|
author | David Reiss <dreiss@apache.org> | Thu May 21 02:28:36 2009 +0000 |
committer | David Reiss <dreiss@apache.org> | Thu May 21 02:28:36 2009 +0000 |
tree | c7d91b6f914002c8bdfb73098d89b59c76018f12 | |
parent | e5eef13e6f509ad60cd2076d37f9ddfe54df7785 [diff] |
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 e077923..27a6476 100644 --- a/lib/cpp/src/Thrift.h +++ b/lib/cpp/src/Thrift.h
@@ -25,6 +25,7 @@ #endif #include <stdio.h> +#include <sys/types.h> #include <netinet/in.h> #ifdef HAVE_INTTYPES_H #include <inttypes.h>
diff --git a/lib/cpp/src/transport/TServerSocket.cpp b/lib/cpp/src/transport/TServerSocket.cpp index 10d3e9e..3a4387e 100644 --- a/lib/cpp/src/transport/TServerSocket.cpp +++ b/lib/cpp/src/transport/TServerSocket.cpp
@@ -18,6 +18,7 @@ */ #include <cstring> +#include <sys/types.h> #include <sys/socket.h> #include <sys/poll.h> #include <sys/types.h>