summaryrefslogtreecommitdiff
path: root/audio/pulseaudio/patches/patch-am
diff options
context:
space:
mode:
Diffstat (limited to 'audio/pulseaudio/patches/patch-am')
-rw-r--r--audio/pulseaudio/patches/patch-am20
1 files changed, 20 insertions, 0 deletions
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;