[ 
https://issues.apache.org/jira/browse/THRIFT-3152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14545271#comment-14545271
 ] 

Hudson commented on THRIFT-3152:
--------------------------------

SUCCESS: Integrated in Thrift #1547 (See 
[https://builds.apache.org/job/Thrift/1547/])
THRIFT-3152 Compiler error on Mac OSX (missing #include <cstdlib>) (roger: rev 
516e28a42d481725156d3d521d453c55b1dfd992)
* lib/cpp/src/thrift/transport/TBufferTransports.h


> Compiler error on Mac OSX (missing #include <cstdlib>)
> ------------------------------------------------------
>
>                 Key: THRIFT-3152
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3152
>             Project: Thrift
>          Issue Type: Bug
>         Environment: Max OSX
>            Reporter: Mathias Gottschlag
>         Attachments: include.patch
>
>
> When compiling any recent (=git master) version of Thrift on Mac OSX in 
> release mode, the compiler reports an error in TBufferTransports.hpp due to 
> std::malloc/std::free not being found. The following patch fixes the compiler 
> error (also attached as patch file):
> diff --git a/lib/cpp/src/thrift/transport/TBufferTransports.h 
> b/lib/cpp/src/thrift/transport/TBufferTransports.h
> index eb08d62..17d617d 100644
> --- a/lib/cpp/src/thrift/transport/TBufferTransports.h
> +++ b/lib/cpp/src/thrift/transport/TBufferTransports.h
> @@ -21,6 +21,7 @@
>  #define _THRIFT_TRANSPORT_TBUFFERTRANSPORTS_H_ 1
>  
> +#include <cstdlib>
>  #include <cstring>
>  #include <limits>
>  #include <boost/scoped_array.hpp>
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to