Subject: pkg/8892: misc/watch doesn't compile on alpha
To: None <gnats-bugs@gnats.netbsd.org>
From: Antti Kantee <pooka@iki.fi>
List: netbsd-bugs
Date: 11/27/1999 02:54:40
>Number:         8892
>Category:       pkg
>Synopsis:       misc/watch doesn't compile on alpha
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 27 02:54:01 1999
>Last-Modified:
>Originator:     
>Organization:
>Release:        -currentish
>Environment:
System: NetBSD/alpha 1.4P


>Description:
	Compilation of misc/watch fails because of pointer mismatch.

>How-To-Repeat:
	make

>Fix:
Modify patch-aa a bit:

--- watch.c.orig	Sun Mar 21 19:49:20 1999
+++ watch.c	Sat Nov 27 11:08:46 1999
@@ -6,7 +6,7 @@
  * Slighty modified, and corrected, Francois Pinard, 91-04.
  */
 
-#include <ncurses.h>
+#include <curses.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -19,7 +19,7 @@
 
 extern FILE *popen ();
 extern int pclose ();
-extern long time ();
+extern time_t time ();
 extern char *ctime ();
 
 /*-----------------------------------------.
@@ -38,7 +38,7 @@
   char buf[180];
   char cmd[128];
   int count = 1;
-  long timer;
+  time_t timer;
   int nsecs = 2;
   int total_chars;
 
>Audit-Trail:
>Unformatted: