cpp: Fix compiler and library compilation with newer glibc


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@761464 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/parse/t_type.h b/compiler/cpp/src/parse/t_type.h
index e7e459c..4ce2eda 100644
--- a/compiler/cpp/src/parse/t_type.h
+++ b/compiler/cpp/src/parse/t_type.h
@@ -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?
diff --git a/lib/cpp/src/Thrift.h b/lib/cpp/src/Thrift.h
index 83bef47..26d2b0f 100644
--- a/lib/cpp/src/Thrift.h
+++ b/lib/cpp/src/Thrift.h
@@ -23,6 +23,7 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+#include <stdio.h>
 
 #include <netinet/in.h>
 #ifdef HAVE_INTTYPES_H
diff --git a/lib/cpp/src/concurrency/Thread.h b/lib/cpp/src/concurrency/Thread.h
index 6b9fc03..d4282ad 100644
--- a/lib/cpp/src/concurrency/Thread.h
+++ b/lib/cpp/src/concurrency/Thread.h
@@ -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>
 
diff --git a/lib/cpp/src/protocol/TBase64Utils.h b/lib/cpp/src/protocol/TBase64Utils.h
index e6b172a..3def733 100644
--- a/lib/cpp/src/protocol/TBase64Utils.h
+++ b/lib/cpp/src/protocol/TBase64Utils.h
@@ -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 {