]> granicus.if.org Git - file/commitdiff
remove strerror check (petk)
authorChristos Zoulas <christos@zoulas.com>
Thu, 28 Mar 2019 20:52:43 +0000 (20:52 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 28 Mar 2019 20:52:43 +0000 (20:52 +0000)
configure.ac
src/file.h

index 07e76047d73122545c6a312ea20d72bc1f0f2197..79f2720e2d5250719369b32c186f37693386637a 100644 (file)
@@ -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)
index f8e08354b861d4bc00ebcf03bbce3fc3d9398b1f..feb91024114f61b4b9ebbd42cd973461378fd974 100644 (file)
@@ -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