$NetBSD: patch-ag,v 1.2 2024/10/10 17:21:09 nia Exp $

--- EmiClock.c.orig	1999-09-26 16:18:18.000000000 +0000
+++ EmiClock.c
@@ -509,7 +509,7 @@ static void
 EmiClockRandomInit(w)
     EmiClockWidget	w;
 {
-    long	now;
+    time_t	now;
     struct tm	*tm;
 
     /* $B;~4V$r<h$j=P$9(B */
@@ -567,7 +567,7 @@ Realize(w, valueMask, attrs)
     XSetWindowAttributes	*attrs;
 {
     EmiClockWidget	cw = (EmiClockWidget)w;
-    long		now;
+    time_t		now;
     struct tm		*tm;
 
     XtCreateWindow(w, (unsigned)InputOutput, (Visual *)CopyFromParent,
@@ -951,7 +951,7 @@ static void
 NewTime(w)
     EmiClockWidget	w;
 {
-    long	now;
+    time_t	now;
     struct tm	*tm;
     int		year;
 
@@ -1033,11 +1033,7 @@ NewInterval(w)
 
     /* $B%$%s%?!<%P%k$N@_Dj(B */
 #ifdef	HAVE_GETTIMEOFDAY
-#if !(defined(solaris) || (defined(__sony_news) && defined(SVR4)))
     if (gettimeofday(&tp, &tzp) != 0) {
-#else
-    if (gettimeofday(&tp) != 0) {
-#endif
 	FatalError("Can't gettimeofday.");
     }
 
@@ -1066,7 +1062,7 @@ NewInterval(w)
 				/* 1000 milliseconds == 1 second */
 			(XtTimerCallbackProc)NewTime, w);
     } else {
-	long		now;
+	time_t		now;
 	struct tm	*tm;
 
 	time(&now);
@@ -1426,7 +1422,7 @@ static void
 GenPixmapAndDraw(w)
     EmiClockWidget	w;
 {
-    long	now;
+    time_t	now;
     struct tm	*tm;
 
     TimerBasePixmapGen(w, NULL);	/* $B2<3($N:n@.(B */
