Re: Problem compiling beta2 under Linux

From: Markus Gyger <mgyger@dont-contact.us>
Date: Tue, 17 Sep 1996 16:05:56 +0200 (MESZ)

> On Tuesday 17 September 96, at 7 h 26, the keyboard of Lars Marowsky-Bree
> <lmb@pointer.in-minden.de> wrote:
>
> > util.c: In function xstrerror':
> > util.c:444: sys_errlist' undeclared (first use this function)
>
> I didn't check Squid code but sys_errlist is declared on most (all?)
> Unices in /usr/include/errno.h. The Linux boxes have it, unless badly
> scrambled.

Some HP-UX, for example, define sys_errlist in errno.h only for C++.
Maybe it would be more portable to use strerror(errno) instead
of sys_errlist[errno], since strerror() is required by ISO/ANSI C.

Regards,
    Markus
Received on Tue Sep 17 1996 - 07:07:24 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:33:01 MST