swrap: use LIBC_SO from GNU libc, if available
authorPino Toscano <toscano.pino@tiscali.it>
Tue, 3 Jun 2014 12:50:05 +0000 (14:50 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 5 Jun 2014 21:57:09 +0000 (23:57 +0200)
commit1e22af95decdfa69813e4b32b0e394573585471c
treef0f403f688faa1231cba29922de56a71d6f4f578
parent47c966d34c2b678ceb4cef45aa2c75aad456903b
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>