Daniel Eischen wrote:

> Attached is a patch that attempts to work around recent stdio
> breakage in -current.  I've verified it compiles, but won't be
> able to test it until at least tomorrow.  If someone wants to
> review it and verify it works, I'll commit it.
> 
> Thanks,

>  __BEGIN_DECLS
> -extern FILE __sF[];
> +extern __old_FILE __sF[];
>  __END_DECLS

> -#define      stdin   (&__sF[0])
> -#define      stdout  (&__sF[1])
> -#define      stderr  (&__sF[2])
> +#define      stdin   ((FILE *)&__sF[0])
> +#define      stdout  ((FILE *)&__sF[1])
> +#define      stderr  ((FILE *)&__sF[2])

The problem with this is that it carries the baggage into 5.0-RELEASE
and beyond...  I wish there was a way we could get rid the array entirely
and still stay compatable, but I dont see how. :-(  A major bump makes it
easy.

Cheers,
-Peter
--
Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
"All of this is for nothing if we don't go to the stars" - JMS/B5



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to