You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Radim Kolar (JIRA)" <ji...@apache.org> on 2011/08/20 19:25:27 UTC
[jira] [Updated] (TS-927) [patch] dont use malloc.h
[ https://issues.apache.org/jira/browse/TS-927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radim Kolar updated TS-927:
---------------------------
Attachment: patch-malloc-h
Fix malloc.h include problem
> [patch] dont use malloc.h
> -------------------------
>
> Key: TS-927
> URL: https://issues.apache.org/jira/browse/TS-927
> Project: Traffic Server
> Issue Type: Bug
> Components: Build
> Affects Versions: 3.0.1
> Environment: Freebsd 8.2/i32
> Reporter: Radim Kolar
> Labels: patch
> Attachments: patch-malloc-h
>
>
> On FreeBSD including malloc.h makes program uncompilable. there is #error include stdlib.h instead inside malloc.h header file.
> fix follows:
> --- lib/tsconfig/TsConfigGrammar.y.orig 2011-08-20 18:36:13.685707419 +0200
> +++ lib/tsconfig/TsConfigGrammar.y 2011-08-20 18:36:34.796159531 +0200
> @@ -23,7 +23,7 @@
> */
> # include "TsConfigTypes.h"
> -# include <malloc.h>
> +# include <stdlib.h>
> // Inhibit Bison definitions.
> # define YYMALLOC malloc
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira