You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dr...@apache.org on 2009/05/21 04:28:37 UTC

svn commit: r776931 - in /incubator/thrift/trunk/lib/cpp/src: Thrift.h transport/TServerSocket.cpp

Author: dreiss
Date: Thu May 21 02:28:36 2009
New Revision: 776931

URL: http://svn.apache.org/viewvc?rev=776931&view=rev
Log:
cpp: Fix compilation on OpenBSD by including sys/types.h

socket(2) says that this might be required on some Unixes.

Modified:
    incubator/thrift/trunk/lib/cpp/src/Thrift.h
    incubator/thrift/trunk/lib/cpp/src/transport/TServerSocket.cpp

Modified: incubator/thrift/trunk/lib/cpp/src/Thrift.h
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/cpp/src/Thrift.h?rev=776931&r1=776930&r2=776931&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/cpp/src/Thrift.h (original)
+++ incubator/thrift/trunk/lib/cpp/src/Thrift.h Thu May 21 02:28:36 2009
@@ -25,6 +25,7 @@
 #endif
 #include <stdio.h>
 
+#include <sys/types.h>
 #include <netinet/in.h>
 #ifdef HAVE_INTTYPES_H
 #include <inttypes.h>

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=776931&r1=776930&r2=776931&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:36 2009
@@ -18,6 +18,7 @@
  */
 
 #include <cstring>
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/poll.h>
 #include <sys/types.h>