[PATCH] generic empty __check_native implementation

Pino Toscano toscano.pino@tiscali.it
Thu Jul 26 13:55:00 GMT 2012


Hi,

sysdeps/posix/getaddrinfo.c calls a __check_native function to 
eventually check whether an interface uses a native transport; however, 
the only existing implementation of it is in 
sysdeps/unix/sysv/linux/check_native.c, meaning any GNU non-Linux OS 
will get an undefined reference when linking libc due to its lack.

Attached there is an empty implementation of __check_native, in the same 
place as another internal inet function (__check_pf) has its generic 
version. At least at a quick look it seems the empty implementation 
should pose no issues (the Linux one can even not change a1_native and 
a2_native).

Does it look good?
-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: generic-check_native.diff
Type: text/x-patch
Size: 1358 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120726/16975bd3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120726/16975bd3/attachment.sig>


More information about the Libc-alpha mailing list