summaryrefslogtreecommitdiff
path: root/audio/openal/files
diff options
context:
space:
mode:
Diffstat (limited to 'audio/openal/files')
-rw-r--r--audio/openal/files/patch-configure.in11
-rw-r--r--audio/openal/files/patch-src:alc:alc_context.c22
-rw-r--r--audio/openal/files/patch-src:threads:posixthreads.c11
3 files changed, 44 insertions, 0 deletions
diff --git a/audio/openal/files/patch-configure.in b/audio/openal/files/patch-configure.in
new file mode 100644
index 000000000000..adb925b2f90c
--- /dev/null
+++ b/audio/openal/files/patch-configure.in
@@ -0,0 +1,11 @@
+--- configure.in~ Sat Sep 9 00:15:48 2000
++++ configure.in Mon Sep 25 18:53:56 2000
+@@ -111,7 +111,7 @@
+ AC_CHECK_LIB(m, sin, LIBS="$LIBS -lm", echo "I'm afraid you'll need libm."; exit 1)
+
+ dnl Should be allow dlopen of extensions?
+-AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl", AC_DEFINE(NODLOPEN) echo "Can't dlopen extensions." )
++AC_CHECK_FUNC(dlopen, [], AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl", AC_DEFINE(NODLOPEN) echo "Can't dlopen extensions." ))
+
+ dnl Special OS objs for target systems
+ case "$target" in
diff --git a/audio/openal/files/patch-src:alc:alc_context.c b/audio/openal/files/patch-src:alc:alc_context.c
new file mode 100644
index 000000000000..e39fce269521
--- /dev/null
+++ b/audio/openal/files/patch-src:alc:alc_context.c
@@ -0,0 +1,22 @@
+--- src/alc/alc_context.c~ Tue Aug 1 02:10:18 2000
++++ src/alc/alc_context.c Mon Sep 25 19:20:23 2000
+@@ -65,7 +65,7 @@
+ static ALCenum _alcDestroyContext(AL_context *cc);
+ static void _alcReallocContexts(ALuint newsize);
+ static int _alcCidToIndex(ALuint cid);
+-static ALuint _alcIndexToCid(int index);
++static ALuint _alcIndexToCid(int idx);
+
+ #ifdef JLIB
+ unsigned int jlib_debug = 0;
+@@ -777,8 +777,8 @@
+ return cid - CONTEXT_BASE;
+ }
+
+-static ALuint _alcIndexToCid(int index) {
+- return index + CONTEXT_BASE;
++static ALuint _alcIndexToCid(int idx) {
++ return idx + CONTEXT_BASE;
+ }
+
+ /*
diff --git a/audio/openal/files/patch-src:threads:posixthreads.c b/audio/openal/files/patch-src:threads:posixthreads.c
new file mode 100644
index 000000000000..c322d396e4ae
--- /dev/null
+++ b/audio/openal/files/patch-src:threads:posixthreads.c
@@ -0,0 +1,11 @@
+--- src/threads/posixthreads.c~ Mon Aug 28 19:14:08 2000
++++ src/threads/posixthreads.c Mon Sep 25 19:17:19 2000
+@@ -82,7 +82,7 @@
+ }
+
+ extern unsigned int Posix_SelfThread(void) {
+- return (unsigned int) pthread_self();
++ return (unsigned long)(unsigned long *) pthread_self();
+ }
+
+ extern void Posix_ExitThread(UNUSED(int retval)) {