File 0001-Add-missing-limits-header.patch of Package thrift

Index: thrift-0.9.0/lib/cpp/src/thrift/protocol/TDebugProtocol.cpp
===================================================================
--- thrift-0.9.0.orig/lib/cpp/src/thrift/protocol/TDebugProtocol.cpp	2012-12-02 07:53:16.470513572 -0600
+++ thrift-0.9.0/lib/cpp/src/thrift/protocol/TDebugProtocol.cpp	2012-12-02 07:54:47.362509517 -0600
@@ -23,6 +23,7 @@
 #include <cctype>
 #include <cstdio>
 #include <stdexcept>
+#include <limits>
 #include <boost/static_assert.hpp>
 #include <boost/lexical_cast.hpp>
 
Index: thrift-0.9.0/lib/cpp/src/thrift/protocol/TDenseProtocol.cpp
===================================================================
--- thrift-0.9.0.orig/lib/cpp/src/thrift/protocol/TDenseProtocol.cpp	2012-12-02 07:52:51.706514677 -0600
+++ thrift-0.9.0/lib/cpp/src/thrift/protocol/TDenseProtocol.cpp	2012-12-02 07:54:06.918511327 -0600
@@ -89,6 +89,7 @@
 
 #define __STDC_LIMIT_MACROS
 #include <stdint.h>
+#include <limits>
 #include <thrift/protocol/TDenseProtocol.h>
 #include <thrift/TReflectionLocal.h>
 
Index: thrift-0.9.0/lib/cpp/src/thrift/protocol/TJSONProtocol.cpp
===================================================================
--- thrift-0.9.0.orig/lib/cpp/src/thrift/protocol/TJSONProtocol.cpp	2012-12-02 07:53:04.218514119 -0600
+++ thrift-0.9.0/lib/cpp/src/thrift/protocol/TJSONProtocol.cpp	2012-12-02 07:54:24.122510554 -0600
@@ -20,6 +20,7 @@
 #include "TJSONProtocol.h"
 
 #include <math.h>
+#include <limits>
 #include <boost/lexical_cast.hpp>
 #include "TBase64Utils.h"
 #include <thrift/transport/TTransportException.h>
Index: thrift-0.9.0/lib/cpp/src/thrift/transport/THttpClient.cpp
===================================================================
--- thrift-0.9.0.orig/lib/cpp/src/thrift/transport/THttpClient.cpp	2012-12-02 07:53:24.610513212 -0600
+++ thrift-0.9.0/lib/cpp/src/thrift/transport/THttpClient.cpp	2012-12-02 07:53:46.750512234 -0600
@@ -19,6 +19,7 @@
 
 #include <cstdlib>
 #include <sstream>
+#include <limits>
 #include <boost/algorithm/string.hpp>
 
 #include <thrift/transport/THttpClient.h>