xmp: fix compilation on 10.6

master
Misty De Meo 2013-02-21 11:06:22 -06:00
parent f73feb1338
commit ff4900cc81
1 changed files with 19 additions and 0 deletions

View File

@ -7,6 +7,10 @@ class Xmp < Formula
depends_on 'libxmp'
# 'uint8' doesn't exist on 10.6, just 'UInt8'
# Patch submitted upstream: http://sourceforge.net/mailarchive/forum.php?thread_name=CAGLuM17HE3wUrYEVZ9HgEbpPcvcyGAeAR4uHNj7gjcCN%3DBN3Eg%40mail.gmail.com&forum_name=xmp-devel
def patches; DATA; end
def install
system "./configure", "--prefix=#{prefix}"
system "make install"
@ -19,3 +23,18 @@ class Xmp < Formula
system "#{bin}/xmp", "--load-only", "#{share}/delicate_oooz!.mod"
end
end
__END__
diff --git a/src/sound_coreaudio.c b/src/sound_coreaudio.c
index 45a625b..33c3bec 100644
--- a/src/sound_coreaudio.c
+++ b/src/sound_coreaudio.c
@@ -21,7 +21,7 @@ static AudioUnit au;
*/
static int paused;
-static uint8 *buffer;
+static UInt8 *buffer;
static int buffer_len;
static int buf_write_pos;
static int buf_read_pos;