summaryrefslogtreecommitdiff
path: root/audio/pulseaudio/files
diff options
context:
space:
mode:
Diffstat (limited to 'audio/pulseaudio/files')
-rw-r--r--audio/pulseaudio/files/patch-configure22
-rw-r--r--audio/pulseaudio/files/patch-src_pulsecore_shm.c17
-rw-r--r--audio/pulseaudio/files/patch-src_tests_rtstutter.c27
3 files changed, 49 insertions, 17 deletions
diff --git a/audio/pulseaudio/files/patch-configure b/audio/pulseaudio/files/patch-configure
index 5130810053df..21a97d9124cc 100644
--- a/audio/pulseaudio/files/patch-configure
+++ b/audio/pulseaudio/files/patch-configure
@@ -1,27 +1,23 @@
---- configure.orig 2008-07-26 15:15:12.000000000 -0400
-+++ configure 2008-07-26 15:15:35.000000000 -0400
-@@ -25321,6 +25321,7 @@ $as_echo_n "checking whether to check fo
+--- configure.orig 2009-11-24 16:31:47.000000000 +0100
++++ configure 2009-11-24 16:32:35.000000000 +0100
+@@ -13586,6 +13586,7 @@
check_inconsistencies=yes
case "${host_cpu}-${host_os}" in
*-darwin*) check_inconsistencies=no ;;
+ *-freebsd*) check_inconsistencies=no ;;
esac
if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then
- { $as_echo "$as_me:$LINENO: result: no" >&5
-@@ -32654,9 +32655,9 @@ _ACEOF
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+@@ -18007,7 +18008,7 @@
else
-- { { $as_echo "$as_me:$LINENO: error: *** libatomic-ops headers not found" >&5
--$as_echo "$as_me: error: *** libatomic-ops headers not found" >&2;}
-- { (exit 1); exit 1; }; }
-+# { { $as_echo "$as_me:$LINENO: error: *** libatomic-ops headers not found" >&5
-+#$as_echo "$as_me: error: *** libatomic-ops headers not found" >&2;}
-+# { (exit 1); exit 1; }; }
+- as_fn_error "*** libatomic-ops headers not found" "$LINENO" 5
++# as_fn_error "*** libatomic-ops headers not found" "$LINENO" 5
fi
-@@ -32664,9 +32665,9 @@ done
+@@ -18015,9 +18016,9 @@
# Win32 does not need the lib and breaks horribly if we try to include it
@@ -32,5 +28,5 @@
+# LIBS="$LIBS -latomic_ops"
+# fi
else
- { $as_echo "$as_me:$LINENO: result: no" >&5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
diff --git a/audio/pulseaudio/files/patch-src_pulsecore_shm.c b/audio/pulseaudio/files/patch-src_pulsecore_shm.c
index 549091ccc487..4dfa3a3a9392 100644
--- a/audio/pulseaudio/files/patch-src_pulsecore_shm.c
+++ b/audio/pulseaudio/files/patch-src_pulsecore_shm.c
@@ -1,7 +1,7 @@
---- src/pulsecore/shm.c.orig 2007-10-28 15:13:53.000000000 -0400
-+++ src/pulsecore/shm.c 2008-01-01 16:19:19.000000000 -0500
-@@ -80,7 +80,7 @@ struct shm_marker {
- };
+--- src/pulsecore/shm.c.orig 2009-08-19 10:17:06.000000000 +0800
++++ src/pulsecore/shm.c 2009-11-11 21:25:03.000000000 +0800
+@@ -91,7 +91,7 @@
+ #define SHM_MARKER_SIZE PA_ALIGN(sizeof(struct shm_marker))
static char *segment_name(char *fn, size_t l, unsigned id) {
- pa_snprintf(fn, l, "/pulse-shm-%u", id);
@@ -9,3 +9,12 @@
return fn;
}
+@@ -142,7 +142,7 @@
+ pa_random(&m->id, sizeof(m->id));
+ segment_name(fn, sizeof(fn), m->id);
+
+- if ((fd = shm_open(fn, O_RDWR|O_CREAT|O_EXCL, mode & 0444)) < 0) {
++ if ((fd = shm_open(fn, O_RDWR|O_CREAT|O_EXCL, mode & 0644)) < 0) {
+ pa_log("shm_open() failed: %s", pa_cstrerror(errno));
+ goto fail;
+ }
diff --git a/audio/pulseaudio/files/patch-src_tests_rtstutter.c b/audio/pulseaudio/files/patch-src_tests_rtstutter.c
new file mode 100644
index 000000000000..c80737b1946f
--- /dev/null
+++ b/audio/pulseaudio/files/patch-src_tests_rtstutter.c
@@ -0,0 +1,27 @@
+--- src/tests/rtstutter.c.orig 2009-07-23 15:40:47.000000000 +0200
++++ src/tests/rtstutter.c 2009-11-24 16:26:36.000000000 +0100
+@@ -31,6 +31,11 @@
+ #include <string.h>
+ #include <pthread.h>
+
++#ifdef HAVE_PTHREAD_SETAFFINITY_NP
++#include <sys/param.h>
++#include <sys/cpuset.h>
++#endif
++
+ #include <pulse/timeval.h>
+ #include <pulse/gccmacro.h>
+
+@@ -44,8 +49,12 @@
+
+ static void* work(void *p) {
+ #ifdef HAVE_PTHREAD_SETAFFINITY_NP
++#ifdef __FreeBSD__
++ cpuset_t mask;
++#else
+ cpu_set_t mask;
+ #endif
++#endif
+ struct sched_param param;
+
+ pa_log_notice("CPU%i: Created thread.", PA_PTR_TO_UINT(p));