Index: trunk/config.auto.h.in =================================================================== --- trunk/config.auto.h.in (revision 2466) +++ trunk/config.auto.h.in (revision 2467) @@ -29,9 +29,6 @@ /**** TODO ****/ -/* Define to 1 if you have the `strerror' function. */ -#define HAVE_STRERROR 1 - /* Define to 1 if you have the header file. */ #define HAVE_LOCALE_H 1 Index: trunk/src/error.c =================================================================== --- trunk/src/error.c (revision 2466) +++ trunk/src/error.c (revision 2467) @@ -56,11 +56,6 @@ * some external identifiers */ -#if !defined(HAVE_STRERROR) -extern int sys_nerr; /* number of messages available from array */ -#define USE_SYS_ERRLIST -#endif - /* the list is already defined for some OS */ #if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__linux__) && !defined(__DragonFly__) #ifdef USE_SYS_ERRLIST @@ -106,11 +101,7 @@ char *utf8 = NULL; utf8_dup_string(&utf8, Filename); -#ifdef USE_SYS_ERRLIST - Message(_("Can't open file\n" " '%s'\nfopen() returned: '%s'\n"), utf8, errno <= sys_nerr ? sys_errlist[errno] : "???"); -#else Message(_("Can't open file\n" " '%s'\nfopen() returned: '%s'\n"), utf8, strerror(errno)); -#endif free(utf8); } @@ -122,12 +113,7 @@ char *utf8 = NULL; utf8_dup_string(&utf8, Filename); -#ifdef USE_SYS_ERRLIST - Message(_("Can't execute command\n" - " '%s'\npopen() returned: '%s'\n"), utf8, errno <= sys_nerr ? sys_errlist[errno] : "???"); -#else Message(_("Can't execute command\n" " '%s'\npopen() returned: '%s'\n"), utf8, strerror(errno)); -#endif free(utf8); } @@ -139,12 +125,7 @@ char *utf8 = NULL; utf8_dup_string(&utf8, DirName); -#ifdef USE_SYS_ERRLIST - Message(_("Can't scan directory\n" - " '%s'\nopendir() returned: '%s'\n"), utf8, errno <= sys_nerr ? sys_errlist[errno] : "???"); -#else Message(_("Can't scan directory\n" " '%s'\nopendir() returned: '%s'\n"), utf8, strerror(errno)); -#endif free(utf8); } @@ -156,12 +137,7 @@ char *utf8 = NULL; utf8_dup_string(&utf8, DirName); -#ifdef USE_SYS_ERRLIST - Message(_("Can't change working directory to\n" - " '%s'\nchdir() returned: '%s'\n"), utf8, errno <= sys_nerr ? sys_errlist[errno] : "???"); -#else Message(_("Can't change working directory to\n" " '%s'\nchdir() returned: '%s'\n"), utf8, strerror(errno)); -#endif free(utf8); }