From 15ba098414775de3be5617254ca25a65baac1e91 Mon Sep 17 00:00:00 2001 From: dmcmahill Date: Sat, 15 Jun 2002 20:40:25 +0000 Subject: make this go on alpha --- time/xchrono/distinfo | 3 ++- time/xchrono/patches/patch-ab | 52 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 time/xchrono/patches/patch-ab (limited to 'time') 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 + #include "MultiClockP.h" + +-extern long time(); ++#include + 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) + { -- cgit v1.2.3