From 4d049a8baacf9ede77b91cff4582798f7df350e8 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 18 Oct 1995 07:36:16 +0000 Subject: Wed Oct 18 03:33:22 1995 Roland McGrath * sysdeps/generic/_strerror.c: Declare _sys_errlist and _sys_nerr. * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For magic `fd/', pass the right pointer to strtol to parse the number. --- sysdeps/generic/_strerror.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sysdeps/generic/_strerror.c') diff --git a/sysdeps/generic/_strerror.c b/sysdeps/generic/_strerror.c index 72ebb216bf..71fabe7695 100644 --- a/sysdeps/generic/_strerror.c +++ b/sysdeps/generic/_strerror.c @@ -31,6 +31,9 @@ _strerror_internal (errnum, buf, buflen) char *buf; size_t buflen; { + extern const char *const _sys_errlist[]; + extern const int _sys_nerr; + if (errnum < 0 || errnum > _sys_nerr) { int len = __snprintf (buf, buflen, _("Unknown error %d"), errnum); -- cgit 1.4.1