Cairo: fix compile on Snow Leopard

Closes Homebrew/homebrew#15691.
Fixes Homebrew/homebrew#15650.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Miles J. Crumley 2012-10-26 12:07:30 -07:00 committed by Adam Vandenberg
parent 9b4a90b681
commit ac98190483
1 changed files with 19 additions and 0 deletions

View File

@ -23,6 +23,11 @@ class Cairo < Formula
depends_on 'glib' unless build.include? 'without-x'
depends_on :x11 unless build.include? 'without-x'
# See: http://lists.cairographics.org/archives/cairo/2012-October/023694.html
def patches
DATA if MacOS.version <= :snow_leopard
end
def install
ENV.universal_binary if build.universal?
@ -38,3 +43,17 @@ class Cairo < Formula
system "make install"
end
end
__END__
diff --git a/src/cairo-xlib-surface-shm.c b/src/cairo-xlib-surface-shm.c
index 08169f2..6a1752d 100644
--- a/src/cairo-xlib-surface-shm.c
+++ b/src/cairo-xlib-surface-shm.c
@@ -51,7 +51,7 @@
#include <X11/Xlibint.h>
#include <X11/Xproto.h>
#include <X11/extensions/XShm.h>
-#include <X11/extensions/shmproto.h>
+#include <X11/extensions/shmstr.h>
#include <sys/ipc.h>
#include <sys/shm.h>