adding support for inet_pton and inet_ntop to lib/replace

Michael Adam ma at sernet.de
Thu May 24 12:43:18 GMT 2007


On Thu, May 24, 2007 at 02:10:22PM +0200, Stefan (metze) Metzmacher wrote:
> Michael Adam schrieb:
> > Index: lib/replace/replace.h
> > ===================================================================
> > --- lib/replace/replace.h	(revision 23108)
> > +++ lib/replace/replace.h	(working copy)
> > @@ -74,6 +74,10 @@
> >  #include <sys/types.h>
> >  #endif
> >  
> > +#ifdef HAVE_SYS_SOCKET_H
> > +#include <sys/socket.h>
> > +#endif
> > +
> 
> Hi Michael,
> 
> I'm not sure this is correct here...
> 
> I would better include "system/network.h" in the inet_*.c files

Oh yes, I was not aware of that - sounds reasonable.

Updated patch is attached.

Michael

-- 
Michael Adam <ma at sernet.de>
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.SerNet.DE, mailto: Info @ SerNet.DE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libreplace-inet_pton.diff
Type: text/x-patch
Size: 12540 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070524/bad333e9/libreplace-inet_pton.bin


More information about the samba-technical mailing list