summaryrefslogtreecommitdiff
path: root/audio/jack/files/patch-driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/jack/files/patch-driver.c')
-rw-r--r--audio/jack/files/patch-driver.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/audio/jack/files/patch-driver.c b/audio/jack/files/patch-driver.c
new file mode 100644
index 000000000000..15194d406eeb
--- /dev/null
+++ b/audio/jack/files/patch-driver.c
@@ -0,0 +1,31 @@
+--- libjack/driver.c.orig Thu Dec 11 00:50:40 2003
++++ libjack/driver.c Tue Mar 9 19:52:04 2004
+@@ -24,6 +24,7 @@
+ #include <stdarg.h>
+ #include <stdlib.h>
+ #include <stdio.h>
++#include <sys/types.h>
+ #include <sys/mman.h>
+ #include <errno.h>
+
+@@ -105,6 +106,11 @@
+ return -1;
+ }
+
++#ifdef __FreeBSD__
++#include <osreldate.h>
++#endif
++#if (defined(__APPLE__) && defined(__POWERPC__)) || (__FreeBSD_version < 501000)
++#else
+ if (mlockall (MCL_CURRENT | MCL_FUTURE) != 0) {
+ jack_error ("cannot lock down memory for RT thread (%s)",
+ strerror (errno));
+@@ -112,7 +118,7 @@
+ return -1;
+ #endif /* ENSURE_MLOCK */
+ }
+-
++#endif
+ return 0;
+ }
+