69051cfd22
This fixes PR pkg/40424 by Torsten Harenberg.
20 lines
520 B
Text
20 lines
520 B
Text
$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;
|