From 240b6b03632e70a0ce1452723ce008c387014b7b Mon Sep 17 00:00:00 2001 From: Scott McCreary Date: Sun, 31 Aug 2008 06:53:19 +0000 Subject: [PATCH] Patch to SDL_sound.c to allow building on Haiku. --- media-libs/sdl-sound/SDL_sound-haiku.c.diff | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 media-libs/sdl-sound/SDL_sound-haiku.c.diff diff --git a/media-libs/sdl-sound/SDL_sound-haiku.c.diff b/media-libs/sdl-sound/SDL_sound-haiku.c.diff new file mode 100644 index 000000000..a94c59afa --- /dev/null +++ b/media-libs/sdl-sound/SDL_sound-haiku.c.diff @@ -0,0 +1,13 @@ +--- SDL_sound.c 2008-08-30 21:13:28.000000000 -0700 ++++ SDL_sound-haiku.c 2008-08-30 22:41:20.000000000 -0700 +@@ -928,8 +928,9 @@ + + Sint32 Sound_GetDuration(Sound_Sample *sample) + { ++ Sound_SampleInternal *internal; + BAIL_IF_MACRO(!initialized, ERR_NOT_INITIALIZED, -1); +- Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque; ++ internal = (Sound_SampleInternal *) sample->opaque; + return(internal->total_time); + } /* Sound_GetDuration */ +