swrap: use LIBC_SO from GNU libc, if available
commitb5cd09805445bbaee1a8a8198611244281e62861
authorPino Toscano <toscano.pino@tiscali.it>
Tue, 3 Jun 2014 12:50:05 +0000 (3 14:50 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 5 Jun 2014 21:57:09 +0000 (5 23:57 +0200)
tree8a5c04f6e5b529666a5dd4b359671bbe7e285f75
parent7f36828fccdac860e6ef06424e9b486aec1af00f
swrap: use LIBC_SO from GNU libc, if available

Look for gnu/lib-names.h and use the LIBC_SO define to dlopen libc, so
the right library is loaded without manually searching for libc.so.N.

Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/socket_wrapper/socket_wrapper.c
lib/socket_wrapper/wscript