summaryrefslogtreecommitdiff
path: root/www/php4/patches/patch-ak
blob: feb955eee170ec4f8ffdf1c1a0c1aa49912c14c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-ak,v 1.4 2005/04/21 23:47:46 salo Exp $

--- ext/imap/php_imap.c.orig	2005-01-25 15:23:37.000000000 +0100
+++ ext/imap/php_imap.c	2005-04-22 01:37:25.000000000 +0200
@@ -415,6 +415,11 @@
 
 	ZEND_INIT_MODULE_GLOBALS(imap, php_imap_init_globals, NULL)
 
+/*
+ * Optionally use the installed c-client linkage.c to determine which drivers
+ * are authenticators are linked in. Otherwise use this fixed list.
+ */
+#ifndef HAVE_IMAP_LINKAGE
 #ifndef PHP_WIN32
 	mail_link(&unixdriver);		/* link in the unix driver */
 	mail_link(&mhdriver);		/* link in the mh driver */
@@ -430,6 +435,10 @@
 	mail_link(&tenexdriver);	/* link in the tenex driver */
 	mail_link(&mtxdriver);		/* link in the mtx driver */
 	mail_link(&dummydriver);	/* link in the dummy driver */
+#else /* HAVE_IMAP_LINKAGE */
+        /* link in the c-client mail and auth drivers */
+#include "linkage.c"
+#endif /* HAVE_IMAP_LINKAGE */
 
 #ifndef PHP_WIN32
 	auth_link(&auth_log);		/* link in the log authenticator */