summaryrefslogtreecommitdiff
path: root/misc/watch/patches/patch-aa
blob: e875d0c71ee9b976c1485aec24d254f522c0a5b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
$NetBSD: patch-aa,v 1.2 1999/11/27 17:12:43 hubertf Exp $

--- watch.c.orig	Sun Mar 21 18:49:20 1999
+++ watch.c	Sat Nov 27 18:10:34 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>
@@ -17,10 +17,15 @@
 int die_flag;
 void die ();
 
+#ifdef __NetBSD__
+#include <sys/types.h>
+#include <time.h>
+#else
 extern FILE *popen ();
 extern int pclose ();
 extern long time ();
 extern char *ctime ();
+#endif
 
 /*-----------------------------------------.
  * Decode parameters and launch execution. |
@@ -38,7 +43,11 @@
   char buf[180];
   char cmd[128];
   int count = 1;
+#ifdef __NetBSD__
+  time_t timer;
+#else
   long timer;
+#endif
   int nsecs = 2;
   int total_chars;