[MacPorts] #37418: webkit-gtk build failure
MacPorts
noreply at macports.org
Wed Jan 9 17:39:33 PST 2013
#37418: webkit-gtk build failure
----------------------------+------------------------
Reporter: enekogotzon@… | Owner: jeremyhu@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Resolution: | Keywords: leopard
Port: webkit-gtk |
----------------------------+------------------------
Comment (by jeremyhu@…):
Replying to [comment:10 ryandesign@…]:
> The code in webkit-gtk 1.10.2 in Source/WTF/wtf/FastMalloc.cpp, which is
the only place malloc_introspection_t is used, uses it this way:
>
> {{{
> extern "C" {
> malloc_introspection_t jscore_fastmalloc_introspection = {
&FastMallocZone::enumerate, &FastMallocZone::goodSize,
&FastMallocZone::check, &FastMallocZone::print,
> &FastMallocZone::log, &FastMallocZone::forceLock,
&FastMallocZone::forceUnlock, &FastMallocZone::statistics
>
> #if OS(IOS) || __MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
> , 0 // zone_locked will not be called on the zone unless it
advertises itself as version five or higher.
> #endif
> #if OS(IOS) || __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
> , 0, 0, 0, 0 // These members will not be used unless the zone
advertises itself as version seven or higher.
> #endif
>
> };
> }
> }}}
>
> To me that looks correct for all versions of OS X. But it does depend on
`__MAC_OS_X_VERSION_MAX_ALLOWED`. How can I check to see what value that
has?
That code looks correct. __MAC_OS_X_VERSION_MAX_ALLOWED should be
determined by the SDK being used.
I'd recommend just adding this to sanity check:
{{{
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
#error __MAC_OS_X_VERSION_MAX_ALLOWED has an unexpected value
#endif
}}}
--
Ticket URL: <https://trac.macports.org/ticket/37418#comment:12>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list