Files
macports-ports/www/webkit-gtk/files/leopard-malloc.patch

17 lines
864 B
Diff

--- Source/WTF/wtf/FastMalloc.cpp.orig 2015-01-07 16:04:31.000000000 -0800
+++ Source/WTF/wtf/FastMalloc.cpp 2015-01-07 16:06:05.000000000 -0800
@@ -5095,8 +5095,13 @@ void* FastMallocZone::zoneRealloc(malloc
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
};
}