You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by br...@apache.org on 2010/09/02 18:42:19 UTC

svn commit: r992013 - /incubator/thrift/trunk/lib/cpp/src/Thrift.cpp

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>