]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
do AC_REPLACE_FUNCS(strerror)
authorwessels <>
Fri, 21 Feb 1997 23:28:35 +0000 (23:28 +0000)
committerwessels <>
Fri, 21 Feb 1997 23:28:35 +0000 (23:28 +0000)
configure.in
lib/util.c

index 683c4d4735c75998c96620c0c763c13214689eff..ef991b1fb201dfc37bcf74def6e4d874f0fbf519 100644 (file)
@@ -3,13 +3,13 @@ dnl  Configuration input file for Squid
 dnl
 dnl  Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
 dnl
-dnl  $Id: configure.in,v 1.67 1997/01/31 21:14:33 wessels Exp $
+dnl  $Id: configure.in,v 1.68 1997/02/21 16:28:35 wessels Exp $
 dnl
 dnl
 dnl
 AC_INIT(src/main.c)
 AC_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.67 $)dnl
+AC_REVISION($Revision: 1.68 $)dnl
 AC_PREFIX_DEFAULT(/usr/local/squid)
 AC_CONFIG_AUX_DIR(aux)
 
@@ -349,6 +349,7 @@ AC_SUBST(LIBREGEX)
 
 AC_REPLACE_FUNCS(\
        tempnam \
+       strerror \
 )
 
 AC_MSG_CHECKING(Maximum number of filedescriptors we can open)
index c7367eab2a899e9a8d240e7a4cd44bc7cfd38cff..60a6e40d0c17d2c6d512d281b415241fa937b158 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: util.c,v 1.28 1996/11/24 02:41:56 wessels Exp $
+ * $Id: util.c,v 1.29 1997/02/21 16:28:36 wessels Exp $
  *
  * DEBUG: 
  * AUTHOR: Harvest Derived
@@ -134,9 +134,6 @@ void (*failure_notify) _PARAMS((const char *)) = NULL;
 static char msg[128];
 
 extern int sys_nerr;
-#if NEED_SYS_ERRLIST && !defined(_SQUID_NETBSD_)
-extern char *sys_errlist[];
-#endif
 
 #if XMALLOC_STATISTICS
 #define DBG_MAXSIZE   (1024*1024)
@@ -433,7 +430,7 @@ xstrdup(const char *s)
 }
 
 /*
- * xstrerror() - return sys_errlist[errno];
+ * xstrerror() - strerror() wrapper
  */
 const char *
 xstrerror(void)
@@ -441,11 +438,7 @@ xstrerror(void)
     static char xstrerror_buf[BUFSIZ];
     if (errno < 0 || errno >= sys_nerr)
        return ("Unknown");
-#if HAVE_STRERROR
     sprintf(xstrerror_buf, "(%d) %s", errno, strerror(errno));
-#else
-    sprintf(xstrerror_buf, "(%d) %s", errno, sys_errlist[errno]);
-#endif /* HAVE_STRERROR */
     return xstrerror_buf;
 }