diff options
Diffstat (limited to 'misc/gnu-watch/files/extrapatch-watch.c')
-rw-r--r-- | misc/gnu-watch/files/extrapatch-watch.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/misc/gnu-watch/files/extrapatch-watch.c b/misc/gnu-watch/files/extrapatch-watch.c new file mode 100644 index 000000000000..de8c97abfa4a --- /dev/null +++ b/misc/gnu-watch/files/extrapatch-watch.c @@ -0,0 +1,16 @@ +--- 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) { |