swrap: use LIBC_SO from GNU libc, if available
authorPino Toscano <toscano.pino@tiscali.it>
Thu, 8 May 2014 11:37:02 +0000 (13:37 +0200)
committerAndreas Schneider <asn@samba.org>
Thu, 8 May 2014 14:00:10 +0000 (16:00 +0200)
commit0fa56909442c3cfea6a697681ea0e89ba5a0aa0f
tree39b3dd3777af3db8de637e0fbb6d2de86eb4e984
parent3d70059d5465e8ae0a3149265ea7c04a78e480d2
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>
ConfigureChecks.cmake
config.h.cmake
src/socket_wrapper.c