$NetBSD: patch-al,v 1.1 2008/12/20 19:44:00 jmcneill Exp $ --- src/polkit-dbus/polkit-simple.c.orig 2008-12-20 14:30:39.000000000 -0500 +++ src/polkit-dbus/polkit-simple.c 2008-12-20 14:30:47.000000000 -0500 @@ -253,7 +253,12 @@ out: return ret; } +#ifdef __APPLE__ +#include +#define environ (*_NSGetEnviron()) +#else extern char **environ; +#endif static polkit_bool_t _auth_show_dialog_text (const char *action_id, pid_t pid, DBusError *error)