summaryrefslogtreecommitdiff
path: root/audio/pulseaudio/patches
diff options
context:
space:
mode:
authortron <tron>2009-02-05 21:05:07 +0000
committertron <tron>2009-02-05 21:05:07 +0000
commit4d4b69b4192ed9ba3ddfe7480812998980d8757b (patch)
tree3fbff481ba60b93b7419b0d1a0459a7c5acb9bd0 /audio/pulseaudio/patches
parent858722d0b720b29521b1fb137750f3f9d0815ef0 (diff)
downloadpkgsrc-4d4b69b4192ed9ba3ddfe7480812998980d8757b.tar.gz
Make this package build and work under Mac OS X (Leopard).
This fixes PR pkg/40424 by Torsten Harenberg.
Diffstat (limited to 'audio/pulseaudio/patches')
-rw-r--r--audio/pulseaudio/patches/patch-al15
-rw-r--r--audio/pulseaudio/patches/patch-am20
2 files changed, 35 insertions, 0 deletions
diff --git a/audio/pulseaudio/patches/patch-al b/audio/pulseaudio/patches/patch-al
new file mode 100644
index 00000000000..325e35121c5
--- /dev/null
+++ b/audio/pulseaudio/patches/patch-al
@@ -0,0 +1,15 @@
+$NetBSD: patch-al,v 1.1 2009/02/05 21:05:07 tron Exp $
+
+--- src/pulsecore/core-util.c.orig 2009-02-05 14:21:35.000000000 +0000
++++ src/pulsecore/core-util.c 2009-02-05 14:42:02.000000000 +0000
+@@ -105,6 +105,10 @@
+ #define MSG_NOSIGNAL 0
+ #endif
+
++#ifdef __APPLE__
++#include <xlocale.h>
++#endif
++
+ #ifdef OS_IS_WIN32
+
+ #define PULSE_ROOTENV "PULSE_ROOT"
diff --git a/audio/pulseaudio/patches/patch-am b/audio/pulseaudio/patches/patch-am
new file mode 100644
index 00000000000..33dfc911312
--- /dev/null
+++ b/audio/pulseaudio/patches/patch-am
@@ -0,0 +1,20 @@
+$NetBSD: patch-am,v 1.1 2009/02/05 21:05:07 tron Exp $
+
+--- src/pulsecore/proplist-util.c.orig 2009-01-12 23:10:34.000000000 +0000
++++ src/pulsecore/proplist-util.c 2009-02-05 19:59:17.000000000 +0000
+@@ -35,9 +35,14 @@
+
+ #include "proplist-util.h"
+
++#ifdef __APPLE__
++#include <crt_externs.h>
++#define environ (*_NSGetEnviron())
++#endif
++
+ void pa_init_proplist(pa_proplist *p) {
+ int a, b;
+-#if !HAVE_DECL_ENVIRON
++#if !HAVE_DECL_ENVIRON && !defined(__APPLE__)
+ extern char **environ;
+ #endif
+ char **e;