summaryrefslogtreecommitdiff
path: root/misc/watch
diff options
context:
space:
mode:
authorhubertf <hubertf>1999-11-27 17:12:42 +0000
committerhubertf <hubertf>1999-11-27 17:12:42 +0000
commitd1e9f163dbd2f7e68d76fff23b09561223aeae80 (patch)
tree7960c4d0db081a98dcea065c1596cce341f241fe /misc/watch
parent7eb068413fff2071b142836f48a5f61d9bfee289 (diff)
downloadpkgsrc-d1e9f163dbd2f7e68d76fff23b09561223aeae80.tar.gz
Fix some LP64 compile problem, submitted in PR 8892 by
Antti Kantee <pooka@iki.fi>
Diffstat (limited to 'misc/watch')
-rw-r--r--misc/watch/files/patch-sum4
-rw-r--r--misc/watch/patches/patch-aa34
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 <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;
+