[Zlib-devel] #ifdef out strerror prototype for VMS

Cosmin Truta cosmin at cs.toronto.edu
Thu Jun 24 19:18:38 EDT 2004


Is it because VMS lacks strerror, or because this particular prototype
doesn't work in VMS?

If it's the former, then this is not the right fix. The right way to do
it in that case is to make sure HAVE_STRERROR is not defined in the
presence of VMS.

I am curious, is HAVE_STRERROR defined in the VMS build? It's not
defined in zlib - so how come you run into this error?

Best regards,
Cosmin


On Thu, 24 Jun 2004, Glenn Randers-Pehrson wrote:

> Some time ago the mozilla maintainers found it necessary to #ifndef
> out a line of zutil.h when building for VMS:
>
>  #ifdef HAVE_STRERROR
> +#ifndef VMS
>     extern char *strerror OF((int));
> +#endif
>  #  define zstrerror(errnum) strerror(errnum)
>
> Please make this change to the zlib source.
>
> See mozilla's bugzilla bug #226733.
>
> Glenn




More information about the Zlib-devel mailing list