Author: bryanduxbury
Date: Thu Sep  2 16:42:18 2010
New Revision: 992013

URL: http://svn.apache.org/viewvc?rev=992013&view=rev
Log:
THRIFT-856. cpp: Building cpp library fails on OS X with malloc and free not 
being declared in scope

This patch adds include which seems to fix the problem for some people.

Patch: James Clarke

Modified:
    incubator/thrift/trunk/lib/cpp/src/Thrift.cpp

Modified: incubator/thrift/trunk/lib/cpp/src/Thrift.cpp
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/cpp/src/Thrift.cpp?rev=992013&r1=992012&r2=992013&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/cpp/src/Thrift.cpp (original)
+++ incubator/thrift/trunk/lib/cpp/src/Thrift.cpp Thu Sep  2 16:42:18 2010
@@ -19,6 +19,7 @@
 
 #include <Thrift.h>
 #include <cstring>
+#include <cstdlib>
 #include <boost/lexical_cast.hpp>
 #include <stdarg.h>
 #include <stdio.h>


Reply via email to