-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added some patches for NetBSD-1.6.2, which lacks the readdir_r function.
Cleaned up the package's Makefile. Approved by wiz.
- Loading branch information
rillig
committed
Mar 16, 2005
1 parent
0735afe
commit b92530c
Showing
5 changed files
with
47 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
$NetBSD: distinfo,v 1.6 2005/02/24 09:59:30 agc Exp $ | ||
$NetBSD: distinfo,v 1.7 2005/03/16 16:17:42 rillig Exp $ | ||
|
||
SHA1 (xfmail-1.5.5.tar.bz2) = 7a98486d1f8cce956efaf37d9540369d5f327401 | ||
RMD160 (xfmail-1.5.5.tar.bz2) = bf3e866d6fa37b7b9959c532b1f4b82fb57eb307 | ||
Size (xfmail-1.5.5.tar.bz2) = 1185913 bytes | ||
SHA1 (patch-aa) = 975551cddd979b39d423e32cb353f5ed48cb600a | ||
SHA1 (patch-ab) = 17de1abd320f38e38a72194531d358061cbd2eb4 | ||
SHA1 (patch-ac) = f04aad8c7d44183cf16743c31c1779b42da500a1 | ||
SHA1 (patch-ad) = 91d92fb76b5ecf9c07295b942a34628ce212ae3d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
$NetBSD: patch-ac,v 1.5 2005/03/16 16:17:42 rillig Exp $ | ||
|
||
--- configure.orig Sun Jan 18 19:01:45 2004 | ||
+++ configure Wed Mar 16 16:52:31 2005 | ||
@@ -27214,7 +27214,7 @@ done | ||
|
||
|
||
|
||
-for ac_func in regcomp madvise vsnprintf snprintf flock lockf strchr memcpy memmove strtoul strerror sysconf sys_nerr utimes setlocale unsetenv | ||
+for ac_func in regcomp madvise vsnprintf snprintf flock lockf strchr memcpy memmove strtoul strerror sysconf sys_nerr utimes setlocale unsetenv readdir_r | ||
do | ||
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
$NetBSD: patch-ad,v 1.7 2005/03/16 16:17:42 rillig Exp $ | ||
|
||
--- src/include/config.h.in.orig Sun Jan 18 19:01:41 2004 | ||
+++ src/include/config.h.in Wed Mar 16 16:59:26 2005 | ||
@@ -115,6 +115,8 @@ | ||
/* Define to 1 if you have the `RAND_status' function. */ | ||
#undef HAVE_RAND_STATUS | ||
|
||
+#undef HAVE_READDIR_R | ||
+ | ||
/* Define to 1 if you have the `regcomp' function. */ | ||
#undef HAVE_REGCOMP | ||
|