Skip to content

Instantly share code, notes, and snippets.

View sorentwo's full-sized avatar
🏡

Parker Selbert sorentwo

🏡
View GitHub Profile
@sorentwo
sorentwo / imagemagick_libpng_fix.sh
Created March 8, 2012 16:52 — forked from mtcmorris/lion-libpng
Fix lion libpng
# Fixing Lion libpng issues
# Until this issue https://github.com/mxcl/homebrew/issues/4468 is resolved
# installing Lion screws up ImageMagick's png support. # The following steps
# are a hacky work around to get things going again. `identify: memory
# allocation failed` is the error # message you'll receive before applying the
# fix.
brew uninstall imagemagick
cd /usr/X11R6/lib
diff --git a/gc.c b/gc.c
--- a/gc.c
+++ b/gc.c
@@ -77,6 +77,41 @@ void *alloca ();
#ifndef GC_MALLOC_LIMIT
#define GC_MALLOC_LIMIT 8000000
#endif
+#define HEAP_MIN_SLOTS 10000
+#define FREE_MIN 4096
+