[PATCH] Fix getifaddrs, freeifaddrs namespace on non-Linux

Mike Frysinger vapier@gentoo.org
Tue Dec 29 19:01:00 GMT 2015


On 19 Dec 2015 00:29, Aurelien Jarno wrote:
> On 2015-12-14 09:58, Andreas Schwab wrote:
> > Aurelien Jarno <aurelien@aurel32.net> writes:
> > > --- a/include/ifaddrs.h
> > > +++ b/include/ifaddrs.h
> > > @@ -3,7 +3,9 @@
> > >  #include <stdbool.h>
> > >  #include <stdint.h>
> > >  
> > > +extern __typeof(getifaddrs) __getifaddrs;
> > >  libc_hidden_proto (getifaddrs)
> > > +extern __typeof(freeifaddrs) __freeifaddrs;
> > >  libc_hidden_proto (freeifaddrs)
> > 
> > You need the hidden_proto on the __ names.
> 
> If I understand correctly doing so also means adding a hidden_def on
> the __ names in ifaddrs.c. Is it correct?

yep
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20151229/d72e1783/attachment.sig>


More information about the Libc-alpha mailing list