Revision: 142 http://trac.macosforge.org/projects/libdispatch/changeset/142 Author: robert@fledge.watson.org Date: 2009-11-06 14:41:12 -0800 (Fri, 06 Nov 2009) Log Message: ----------- Remove the unused malloc_zone_memalign() shim, which depends on the posix_memalign() API, which is not present on Solaris. Discovered by: Joakim Johansson <jocke@tbricks.com> Modified Paths: -------------- trunk/src/shims/malloc_zone.h Modified: trunk/src/shims/malloc_zone.h =================================================================== --- trunk/src/shims/malloc_zone.h 2009-11-06 22:28:01 UTC (rev 141) +++ trunk/src/shims/malloc_zone.h 2009-11-06 22:41:12 UTC (rev 142) @@ -80,16 +80,6 @@ return (realloc(ptr, size)); } -static inline void * -malloc_zone_memalign(malloc_zone_t *zone, size_t alignment, size_t size) -{ - void *ptr; - - if (posix_memalign(&ptr, alignment, size) < 0) - return (NULL); - return (ptr); -} - static inline void malloc_zone_free(malloc_zone_t *zone, void *ptr) {
participants (1)
-
source_changes@macosforge.org