summaryrefslogtreecommitdiff
path: root/deskutils/gnomepim/files/patch-ad
diff options
context:
space:
mode:
authorAde Lovett <ade@FreeBSD.org>2000-06-02 18:15:00 +0000
committerAde Lovett <ade@FreeBSD.org>2000-06-02 18:15:00 +0000
commit71dda4e72102b875cb17c4cf1ac9d06badc0b466 (patch)
tree9d2138a0348c76876e4c5b72ba9ee7e38a0b8ae2 /deskutils/gnomepim/files/patch-ad
parentUpdate to 3.1.7. (diff)
Add optional gnomepilot support (WITH_GNOMEPILOT directive)
The default is OFF, even if you have gnomepilot installed already. Problem reported by: Heath Nielson <heath@cs.byu.edu>
Diffstat (limited to '')
-rw-r--r--deskutils/gnomepim/files/patch-ad19
1 files changed, 19 insertions, 0 deletions
diff --git a/deskutils/gnomepim/files/patch-ad b/deskutils/gnomepim/files/patch-ad
new file mode 100644
index 000000000000..7a5f6345a27e
--- /dev/null
+++ b/deskutils/gnomepim/files/patch-ad
@@ -0,0 +1,19 @@
+--- gnomecard/address-conduit.c.orig Tue Mar 14 01:39:27 2000
++++ gnomecard/address-conduit.c Fri Jun 2 12:36:08 2000
+@@ -241,8 +241,16 @@
+ {
+ if (card->rev.prop.used) {
+ time_t syncTime, revTime;
++#ifdef __FreeBSD__
++ struct tm *tmptm;
++#endif
+ syncTime = GET_CONDUIT_DATA(abs)->dbi->pu->lastSyncDate;
++#ifdef __FreeBSD__
++ tmptm = localtime(&syncTime);
++ revTime = mktime(&card->rev.tm) - tmptm->tm_gmtoff;
++#else
+ revTime = mktime(&card->rev.tm)-timezone;
++#endif
+ LOG("Comparing rev time %lu with sync time %lu",revTime,syncTime);
+ if (revTime > syncTime) return TRUE;
+ }