summaryrefslogtreecommitdiff
path: root/mail/alpine/patches/patch-aa
diff options
context:
space:
mode:
authorplunky <plunky@pkgsrc.org>2009-05-17 17:34:01 +0000
committerplunky <plunky@pkgsrc.org>2009-05-17 17:34:01 +0000
commit0c9396462dcd5b0cb91aa19dca9167b75124ebd6 (patch)
treedb3225ce080f471e834ae64643842f3908f621d8 /mail/alpine/patches/patch-aa
parentc6218863df45455e89af911947978991f0b4cd6d (diff)
downloadpkgsrc-0c9396462dcd5b0cb91aa19dca9167b75124ebd6.tar.gz
include <time.h> and <utime.h> so that where time_t has been changed to 64-bit
values on NetBSD, we we get correctly referred to __utime50() which can handle 64-bit values. This fixes a problem where mailbox mtimes were being reset to 0 Note that this actually causes some build warnings as the code uses "time_t tp[2]" instead of "struct utimbuf tp" (contains two time_t values) Although the <os_bsi.h> file says it is used for BSDI, it seems to be used by NetBSD and OpenBSD, both of which have the <utime.h> and <time.h> bump PKGREVISION
Diffstat (limited to 'mail/alpine/patches/patch-aa')
-rw-r--r--mail/alpine/patches/patch-aa25
1 files changed, 25 insertions, 0 deletions
diff --git a/mail/alpine/patches/patch-aa b/mail/alpine/patches/patch-aa
new file mode 100644
index 00000000000..4d75d6626c4
--- /dev/null
+++ b/mail/alpine/patches/patch-aa
@@ -0,0 +1,25 @@
+$NetBSD: patch-aa,v 1.4 2009/05/17 17:34:01 plunky Exp $
+
+include <time.h> and <utime.h> so that where time_t has been changed to 64-bit
+values on NetBSD, we we get correctly referred to __utime50() which can handle
+64-bit values. This fixes a problem where mailbox mtimes were being reset to 0
+
+Note that this actually causes some build warnings as the code uses
+"time_t tp[2]" instead of "struct utimbuf tp" (contains two time_t values)
+
+Although the <os_bsi.h> file says it is used for BSDI, it seems to be used by
+NetBSD and OpenBSD, both of which have the <utime.h> and <time.h>
+
+ - plunky
+
+--- imap/src/osdep/unix/os_bsi.h.orig 2008-06-04 19:18:34.000000000 +0100
++++ imap/src/osdep/unix/os_bsi.h 2009-05-17 18:00:44.000000000 +0100
+@@ -34,6 +34,8 @@
+ #include <fcntl.h>
+ #include <syslog.h>
+ #include <sys/file.h>
++#include <time.h>
++#include <utime.h>
+
+
+ #include "env_unix.h"