ports/misc/gnu-watch/files/watch.c.patch
Pav Lucistnik 94af45eb2d GNU watch runs command repeatedly, displaying its output (the first
screenfull). This allows you to watch the program output change over
time.

PR:		ports/81892
Submitted by:	Emanuel Haupt <ehaupt@critical.ch>
2005-06-05 14:44:29 +00:00

16 lines
387 B
Diff

--- watch.c.orig Sat Jun 4 02:34:34 2005
+++ watch.c Sat Jun 4 02:34:38 2005
@@ -147,6 +147,13 @@
setlocale(LC_ALL, "");
progname = argv[0];
+ float
+ strtof(const char * restrict nptr, char ** restrict endptr)
+ {
+
+ return ((float)strtod(nptr, endptr));
+ }
+
while ((optc = getopt_long(argc, argv, "+d::hn:vt", longopts, (int *) 0))
!= EOF) {
switch (optc) {