Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Mar 1997 21:11:33 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        current@FreeBSD.org, helbig@MX.BA-Stuttgart.De
Subject:   Re: make world fails on libmytinfo
Message-ID:  <199703261011.VAA05821@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>Here is a patch fixing it. I consider clauses like "__FreeBSD != 2__" harmful. 
>For those dependencies we have CVS, don't we. But there might be a reason
>for it, so I left them in.

>  /* for quit.c */
>  extern int sys_nerr;
>! #if __FreeBSD__ != 2 && __FreeBSD__ != 3
>  extern char *sys_errlist[];
>  #endif
>  extern char *prg_name;

It is just harmful.  Const'ness of sys_errlist has nothing to do with
FreeBSD.

BTW, sys_nerr is also const in FreeBSD, but the type mismatch is only
warned about if gcc is invoked with -pedantic.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703261011.VAA05821>