From aa8046ca7730d8656f74cc0db916df980cf00af9 Mon Sep 17 00:00:00 2001 From: hubertf Date: Sat, 27 Nov 1999 17:12:42 +0000 Subject: Fix some LP64 compile problem, submitted in PR 8892 by Antti Kantee --- misc/watch/files/patch-sum | 4 ++-- misc/watch/patches/patch-aa | 34 +++++++++++++++++++++++++++++++--- 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/misc/watch/files/patch-sum b/misc/watch/files/patch-sum index d198bc00ca8..e03f625fd75 100644 --- a/misc/watch/files/patch-sum +++ b/misc/watch/files/patch-sum @@ -1,3 +1,3 @@ -$NetBSD: patch-sum,v 1.1 1999/07/09 14:09:20 agc Exp $ +$NetBSD: patch-sum,v 1.2 1999/11/27 17:12:42 hubertf Exp $ -MD5 (patch-aa) = 10286856cbf2a4b6ea697dd63bae727b +MD5 (patch-aa) = 832467b582a8369bf4d2bee3c7577286 diff --git a/misc/watch/patches/patch-aa b/misc/watch/patches/patch-aa index c1199658c0e..e875d0c71ee 100644 --- a/misc/watch/patches/patch-aa +++ b/misc/watch/patches/patch-aa @@ -1,7 +1,7 @@ -$NetBSD: patch-aa,v 1.1.1.1 1999/06/16 01:32:51 simonb Exp $ +$NetBSD: patch-aa,v 1.2 1999/11/27 17:12:43 hubertf Exp $ ---- watch.c.orig Mon Mar 22 04:49:20 1999 -+++ watch.c Wed Jun 16 10:41:38 1999 +--- 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. */ @@ -11,3 +11,31 @@ $NetBSD: patch-aa,v 1.1.1.1 1999/06/16 01:32:51 simonb Exp $ #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; + -- cgit v1.2.3