Over zealous redefinition of bzero creates portability issues

Richard Sharpe rsharpe at richardsharpe.com
Mon Jun 16 06:01:09 GMT 2003


On Mon, 16 Jun 2003, Tim Potter wrote:

> On Sun, Jun 15, 2003 at 10:45:06PM -0700, Richard Sharpe wrote:
> 
> > Well, on FreeBSD 4.6.2, and I suspect other versions and maybe other OSes, 
> > FD_ZERO is defined in terms of bzero.
> > 
> > Samba 3.0.0 Beta1 breaks in that case. This is not very portable.
> 
> Tridge reverted the "don't use bzero" macro a few days ago.

Right, as I just discovered. Good thing too, because Slowaris also uses 
bzero for FD_ZERO.
 
Regards
-----
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, 
sharpe[at]ethereal.com, http://www.richardsharpe.com




More information about the samba-technical mailing list