summaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2019-07-13 08:34:45 -0400
committerPaul Smith <psmith@gnu.org>2019-07-13 08:47:19 -0400
commit4d00ceba264a9fd04241dcd2685526ce64c1346b (patch)
tree0b2c589a9860bdca6adb15f3f4d24b34d2bd8825 /src/misc.c
parent1c045bca5270f74baf0cecc665391220373267c1 (diff)
downloadmake-git-4d00ceba264a9fd04241dcd2685526ce64c1346b.tar.gz
Switch to the gnulib version of strerror()
* bootstrap.conf: Add strerror module * configure.ac: Remove strerror check * src/misc.c: Remove local strerror() implementation * src/config.ami.template: Remove HAVE_STRERROR * src/config.h-vms.template: Ditto. * src/config.h.W32.template: Ditto.
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/misc.c b/src/misc.c
index ff23d482..7a1b9d9c 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -172,26 +172,6 @@ concat (unsigned int num, ...)
return result;
}
-
-#ifndef HAVE_STRERROR
-#undef strerror
-char *
-strerror (int errnum)
-{
- extern int errno, sys_nerr;
-#ifndef __DECC
- extern char *sys_errlist[];
-#endif
- static char buf[] = "Unknown error 12345678901234567890";
-
- if (errno < sys_nerr)
- return sys_errlist[errnum];
-
- sprintf (buf, _("Unknown error %d"), errnum);
- return buf;
-}
-#endif
-
/* Like malloc but get fatal error if memory is exhausted. */
/* Don't bother if we're using dmalloc; it provides these for us. */