Ticket #478: proplist-util.c.patch

File proplist-util.c.patch, 464 bytes (added by Tron, 3 years ago)

Run time fix for "src/pulsecore/proplist-util.c"

  • src/pulsecore/proplist-util.c

    old new  
    3535 
    3636#include "proplist-util.h" 
    3737 
     38#ifdef __APPLE__ 
     39#include <crt_externs.h> 
     40#define environ (*_NSGetEnviron()) 
     41#endif 
     42 
    3843void pa_init_proplist(pa_proplist *p) { 
    3944    int a, b; 
    40 #if !HAVE_DECL_ENVIRON 
     45#if !HAVE_DECL_ENVIRON && !defined(__APPLE__) 
    4146    extern char **environ; 
    4247#endif 
    4348    char **e;