summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2002-06-15 20:40:25 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2002-06-15 20:40:25 +0000
commit15ba098414775de3be5617254ca25a65baac1e91 (patch)
tree63e2e154d92ecffd1334ebd43a9c094badc55f10 /time
parent006aa2b9f982b09d36f23e0aa08a3819e39af274 (diff)
downloadpkgsrc-15ba098414775de3be5617254ca25a65baac1e91.tar.gz
make this go on alpha
Diffstat (limited to 'time')
-rw-r--r--time/xchrono/distinfo3
-rw-r--r--time/xchrono/patches/patch-ab52
2 files changed, 54 insertions, 1 deletions
diff --git a/time/xchrono/distinfo b/time/xchrono/distinfo
index 9a143cccc72..33111785b89 100644
--- a/time/xchrono/distinfo
+++ b/time/xchrono/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2002/05/14 18:47:52 agc Exp $
+$NetBSD: distinfo,v 1.2 2002/06/15 20:40:25 dmcmahill Exp $
SHA1 (xchrono.shar) = 8cc61b949ff4c1972cfa810831d562d058fa9e2f
Size (xchrono.shar) = 56292 bytes
SHA1 (patch-aa) = 59c5946422c0ac76907e1d512dd64b9a1899029d
+SHA1 (patch-ab) = 414ed2bfc2aa0aeafaf50c4980bb8394ca3e1407
diff --git a/time/xchrono/patches/patch-ab b/time/xchrono/patches/patch-ab
new file mode 100644
index 00000000000..42ac45a99ad
--- /dev/null
+++ b/time/xchrono/patches/patch-ab
@@ -0,0 +1,52 @@
+$NetBSD: patch-ab,v 1.1 2002/06/15 20:40:26 dmcmahill Exp $
+
+the time stuff is needed to compile on alpha, the other stuff kills
+compiler warnings
+
+--- MultiClock.c.orig Sat Jun 15 16:09:44 2002
++++ MultiClock.c
+@@ -33,7 +33,7 @@
+ #include <X11/Xaw/XawInit.h>
+ #include "MultiClockP.h"
+
+-extern long time();
++#include <time.h>
+ static void clock_tic(), updateClocks(), DrawHand(), DrawSecond(), SetSeg(), DrawClockFace();
+ static erase_hands(), round();
+
+@@ -177,7 +177,7 @@
+ {
+ ClassField(numberOfSlots) += CLOCK_LIST_SIZE;
+ ClassField(clockList) =
+- (ClockWidget *) XtRealloc(ClassField(clockList),
++ (ClockWidget *) XtRealloc((void *) ClassField(clockList),
+ sizeof(ClockWidget)*ClassField(numberOfSlots));
+ }
+
+@@ -239,7 +239,7 @@
+ if(!w->clock.analog) {
+ char *str;
+ struct tm tm, *localtime();
+- long time_value;
++ time_t time_value;
+ (void) time(&time_value);
+ tm = *localtime(&time_value);
+ str = asctime(&tm);
+@@ -391,7 +391,7 @@
+ XtIntervalId *id;
+ {
+ ClockWidget w = (ClockWidget) client_data;
+- long time_value;
++ time_t time_value;
+ char localTimezone[TZ_BUFLEN];
+ char *tzenv = getenv("TZ");
+ struct tm *localtime();
+@@ -417,7 +417,7 @@
+ {
+ (*list)->clock.show_second_hand =
+ (ClassField(updateInterval) <= SECOND_HAND_TIME);
+- if (XtIsRealized(*list))
++ if (XtIsRealized((Widget) *list))
+ {
+ if ((*list)->clock.timezone)
+ {