summaryrefslogtreecommitdiff
path: root/lang/php5/patches/patch-ak
diff options
context:
space:
mode:
Diffstat (limited to 'lang/php5/patches/patch-ak')
-rw-r--r--lang/php5/patches/patch-ak27
1 files changed, 27 insertions, 0 deletions
diff --git a/lang/php5/patches/patch-ak b/lang/php5/patches/patch-ak
new file mode 100644
index 00000000000..01c17dee377
--- /dev/null
+++ b/lang/php5/patches/patch-ak
@@ -0,0 +1,27 @@
+$NetBSD: patch-ak,v 1.1 2004/10/31 21:14:54 jdolecek Exp $
+
+--- ext/imap/php_imap.c.orig 2004-08-12 21:32:18.000000000 +0200
++++ ext/imap/php_imap.c 2004-10-31 21:11:57.000000000 +0100
+@@ -428,6 +428,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 */
+@@ -443,6 +448,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 */