diff options
author | tron <tron@pkgsrc.org> | 1998-06-20 20:58:42 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 1998-06-20 20:58:42 +0000 |
commit | dc0fd7c1129963264e8cfceb52ddbe973dd3376c (patch) | |
tree | f5073111ed23ef45761a256de1e72598ac0cafd2 /comms/kermit | |
parent | 998073767fc6d7a65a90ab38c9f0e654c9cf13e9 (diff) | |
download | pkgsrc-dc0fd7c1129963264e8cfceb52ddbe973dd3376c.tar.gz |
Really fix the code for 64 bit architectures instead of only making the
compiler happy. Problem pointed out by Klaus Klein.
Diffstat (limited to 'comms/kermit')
-rw-r--r-- | comms/kermit/patches/patch-ad | 22 | ||||
-rw-r--r-- | comms/kermit/patches/patch-ae | 30 |
2 files changed, 22 insertions, 30 deletions
diff --git a/comms/kermit/patches/patch-ad b/comms/kermit/patches/patch-ad index 41fa15501eb..037b2b2d2fd 100644 --- a/comms/kermit/patches/patch-ad +++ b/comms/kermit/patches/patch-ad @@ -1,16 +1,14 @@ ---- ckutio.c.orig Thu Jun 18 05:04:33 1998 -+++ ckutio.c Thu Jun 18 05:12:25 1998 -@@ -7178,3 +7178,3 @@ +--- ckutio.c.orig Mon Nov 25 01:20:49 1996 ++++ ckutio.c Sat Jun 20 22:44:33 1998 +@@ -7174,9 +7174,9 @@ + #ifdef ATTSV /* AT&T way */ + /* extern long time(); */ /* Theoretically these should */ + char *ctime(); /* already been dcl'd in <time.h> */ +- long clock_storage; ++ time_t clock_storage; clock_storage = time( -#ifdef IRIX60 +#if defined(IRIX60) || defined(__NetBSD__) (time_t *) -@@ -7184,3 +7184,7 @@ - 0 ); -+#ifdef __NetBSD__ -+ *s = ctime( (time_t *)&clock_storage ); -+#else - *s = ctime( &clock_storage ); -+#endif - debug(F110,"ztime: ATTSV",*s,0); - + #else + (long *) diff --git a/comms/kermit/patches/patch-ae b/comms/kermit/patches/patch-ae index 060875a801e..2a942f1ecf7 100644 --- a/comms/kermit/patches/patch-ae +++ b/comms/kermit/patches/patch-ae @@ -1,18 +1,12 @@ ---- ckufio.c.orig Thu Jun 18 05:15:10 1998 -+++ ckufio.c Thu Jun 18 05:19:26 1998 -@@ -2961,6 +2961,14 @@ - } -+#ifdef __NetBSD__ -+ time_stamp = localtime((time_t *)&tmx); -+#else - time_stamp = localtime(&tmx); -+#endif - if (!time_stamp) - return(-1); -+#ifdef __NetBSD__ -+ if (localtime((time_t *)&tmx)->tm_isdst) -+#else - if (localtime(&tmx)->tm_isdst) -+#endif - tmx -= 60L * 60L; /* Adjust for daylight savings time */ - +--- ckufio.c.orig Mon Nov 25 01:20:49 1996 ++++ ckufio.c Sat Jun 20 22:37:35 1998 +@@ -2743,7 +2743,8 @@ + + /* and this should have been declared always through a header file */ + #endif /* OS2 */ +- long tmx, days; ++ time_t tmx; ++ long days; + int i, n, isleapyear; + /* J F M A M J J A S O N D */ + /* 31 28 31 30 31 30 31 31 30 31 30 31 */ |