summaryrefslogtreecommitdiff
path: root/audio/pulseaudio/patches/patch-am
blob: 33dfc911312dde32945977242daf4a290a0a32e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;