Hi,
I've build latest git on MacOS with clang, and found an error that
realloc is not in namespace std. I think the correct fix is to include
<cstdlib> so that realloc can be found in std. Attached is a trivial
patch, please apply. I've tested on MacOS X and Ubuntu Linux x86_64.
I sign this patch off as public domain and free to use by anyone.
All the best,
Mario Emmenlauer
--
BioDataAnalysis GmbH, Mario Emmenlauer Tel. Buero: +49-89-74677203
Balanstr. 43 mailto: memmenlauer * biodataanalysis.de
D-81669 München http://www.biodataanalysis.de/
diff -Naur thrift-1.0.0.4f77ab8.org/lib/cpp/src/thrift/protocol/TCompactProtocol.tcc thrift-1.0.0.4f77ab8/lib/cpp/src/thrift/protocol/TCompactProtocol.tcc
--- thrift-1.0.0.4f77ab8.org/lib/cpp/src/thrift/protocol/TCompactProtocol.tcc 2017-11-10 10:31:40.000000000 +0100
+++ thrift-1.0.0.4f77ab8/lib/cpp/src/thrift/protocol/TCompactProtocol.tcc 2017-11-10 10:30:58.000000000 +0100
@@ -20,6 +20,7 @@
#define _THRIFT_PROTOCOL_TCOMPACTPROTOCOL_TCC_ 1
#include <limits>
+#include <cstdlib>
#include "thrift/config.h"