summaryrefslogtreecommitdiff
path: root/mail/dovecot2/patches/patch-ah
blob: cc7008e3bab8715ad47643af263eba556c4cc95f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ah,v 1.2 2010/12/03 21:21:11 ghen Exp $

--- src/lib/env-util.c.orig	2010-11-10 16:09:10.000000000 +0000
+++ src/lib/env-util.c
@@ -59,7 +59,11 @@ void env_clean(void)
 	if (clearenv() < 0)
 		i_fatal("clearenv() failed");
 #else
+#ifdef __APPLE__
+	char **environ = *_NSGetEnviron();
+#else
 	extern char **environ;
+#endif
 
 	/* Try to clear the environment.