$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 +#include #include #include #include @@ -17,10 +17,15 @@ int die_flag; void die (); +#ifdef __NetBSD__ +#include +#include +#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;