1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/deskutils/gnomepim/files/patch-ad
Ade Lovett 71dda4e721 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>
2000-06-02 18:15:00 +00:00

20 lines
592 B
Plaintext

--- 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;
}