summaryrefslogtreecommitdiff
path: root/mail/xfmail/patches/patch-ab
diff options
context:
space:
mode:
authorrillig <rillig>2005-03-16 16:17:42 +0000
committerrillig <rillig>2005-03-16 16:17:42 +0000
commit804af09dda9891035da27a186c2ed9c038de446b (patch)
treebe9284c83a10ea52d64ebf83eb971dd8f2d32afd /mail/xfmail/patches/patch-ab
parenta584f0bd6d6186dd4f1dd2f4f7849a6ea750ab7e (diff)
downloadpkgsrc-804af09dda9891035da27a186c2ed9c038de446b.tar.gz
Added some patches for NetBSD-1.6.2, which lacks the readdir_r function.
Cleaned up the package's Makefile. Approved by wiz.
Diffstat (limited to 'mail/xfmail/patches/patch-ab')
-rw-r--r--mail/xfmail/patches/patch-ab16
1 files changed, 16 insertions, 0 deletions
diff --git a/mail/xfmail/patches/patch-ab b/mail/xfmail/patches/patch-ab
new file mode 100644
index 00000000000..719c381fc86
--- /dev/null
+++ b/mail/xfmail/patches/patch-ab
@@ -0,0 +1,16 @@
+$NetBSD: patch-ab,v 1.5 2005/03/16 16:17:42 rillig Exp $
+
+--- src/mail/addrbookdb.cpp.orig Fri Jan 2 04:54:01 2004
++++ src/mail/addrbookdb.cpp Wed Mar 16 14:13:41 2005
+@@ -174,7 +174,11 @@ AddressBookDB::Load(const char *configdi
+ dir = opendir(configdir);
+ if (dir == NULL)
+ return false;
++#ifdef HAVE_READDIR_R
+ while (readdir_r(dir, &entry, &result) == 0 && result != NULL) {
++#else
++ while ( (result = readdir(dir)) != NULL) {
++#endif
+ if (NAMLEN(result) > 8 && strncmp(result->d_name, ".xfbook.", 8) == 0) {
+ strncpy(buf, result->d_name, NAMLEN(result));
+ buf[NAMLEN(result)] = '\0';