From: Christos Zoulas Date: Thu, 28 Mar 2019 20:52:43 +0000 (+0000) Subject: remove strerror check (petk) X-Git-Tag: FILE5_37~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c91552eea8b1c5f002beb558a7aff527abd9cded;p=file remove strerror check (petk) --- diff --git a/configure.ac b/configure.ac index 07e76047..79f2720e 100644 --- a/configure.ac +++ b/configure.ac @@ -151,7 +151,7 @@ else fi]) dnl Checks for functions -AC_CHECK_FUNCS(strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale setlocale memmem) +AC_CHECK_FUNCS(strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale setlocale memmem) dnl Provide implementation of some required functions if necessary AC_REPLACE_FUNCS(getopt_long asprintf vasprintf strlcpy strlcat getline ctime_r asctime_r localtime_r gmtime_r pread strcasestr fmtcheck dprintf) diff --git a/src/file.h b/src/file.h index f8e08354..feb91024 100644 --- a/src/file.h +++ b/src/file.h @@ -27,7 +27,7 @@ */ /* * file.h - definitions for file(1) program - * @(#)$File: file.h,v 1.202 2019/02/18 17:46:56 christos Exp $ + * @(#)$File: file.h,v 1.203 2019/03/28 20:52:43 christos Exp $ */ #ifndef __file_h__ @@ -553,13 +553,6 @@ extern const char *file_names[]; extern const size_t file_nnames; #endif -#ifndef HAVE_STRERROR -extern int sys_nerr; -extern char *sys_errlist[]; -#define strerror(e) \ - (((e) >= 0 && (e) < sys_nerr) ? sys_errlist[(e)] : "Unknown error") -#endif - #ifndef HAVE_STRTOUL #define strtoul(a, b, c) strtol(a, b, c) #endif