Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104016 - media-libs/freetype-1.3.1-r4: patch to avoid malloc.h
Summary: media-libs/freetype-1.3.1-r4: patch to avoid malloc.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: foser (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-28 03:54 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2006-04-12 10:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
freetype-1.3.1-malloc.patch (freetype-1.3.1-malloc.patch,772 bytes, patch)
2005-08-28 03:55 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-28 03:54:29 UTC
As per other programs, freetype too includes malloc.h file. This makes it 
incompatible with FreeBSD (where this files throws an #error). The include is 
useless, as stdlib.h is the real provider of malloc() and company, also on 
Linux, OSX and other *BSD (iirc just Dos/Windows uses malloc.h right now). 
 
The attached patch allows to compile it on Gentoo/FreeBSD. 
 
Thanks, 
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-28 03:55:13 UTC
Created attachment 67056 [details, diff]
freetype-1.3.1-malloc.patch
Comment 2 foser (RETIRED) gentoo-dev 2005-10-09 09:06:09 UTC
looks fine, added the patch to 1.3.1-r5