You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Igor Galić (JIRA)" <ji...@apache.org> on 2011/09/26 18:23:26 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 ]
Igor Galić updated TS-927:
--------------------------
Backport to Version: (was: 3.0.2)
Fix Version/s: 3.0.2
> [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
> Assignee: Leif Hedstrom
> Labels: patch
> Fix For: 3.1.0, 3.0.2
>
> 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