cpp: Fix compiler and library compilation with newer glibc
authorDavid Reiss <dreiss@apache.org>
Thu, 2 Apr 2009 23:05:40 +0000 (23:05 +0000)
committerDavid Reiss <dreiss@apache.org>
Thu, 2 Apr 2009 23:05:40 +0000 (23:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@761464 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/parse/t_type.h
lib/cpp/src/Thrift.h
lib/cpp/src/concurrency/Thread.h
lib/cpp/src/protocol/TBase64Utils.h

index e7e459c..4ce2eda 100644 (file)
@@ -23,6 +23,7 @@
 #include <string>
 #include <map>
 #include <cstring>
+#include <stdint.h>
 #include "t_doc.h"
 
 // What's worse?  This, or making a src/parse/non_inlined.cc?
index 83bef47..26d2b0f 100644 (file)
@@ -23,6 +23,7 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+#include <stdio.h>
 
 #include <netinet/in.h>
 #ifdef HAVE_INTTYPES_H
index 6b9fc03..d4282ad 100644 (file)
@@ -20,6 +20,7 @@
 #ifndef _THRIFT_CONCURRENCY_THREAD_H_
 #define _THRIFT_CONCURRENCY_THREAD_H_ 1
 
+#include <stdint.h>
 #include <boost/shared_ptr.hpp>
 #include <boost/weak_ptr.hpp>
 
index e6b172a..3def733 100644 (file)
@@ -20,6 +20,7 @@
 #ifndef _THRIFT_PROTOCOL_TBASE64UTILS_H_
 #define _THRIFT_PROTOCOL_TBASE64UTILS_H_
 
+#include <stdint.h>
 #include <string>
 
 namespace apache { namespace thrift { namespace protocol {