libreplace: Add tests for connect and gethostbyname.
authorMichael Adam <obnox@samba.org>
Tue, 26 Feb 2008 12:24:54 +0000 (13:24 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 26 Feb 2008 15:41:09 +0000 (16:41 +0100)
commit28464179174d2c3d1c1bc124ba9c2519e08a5fc9
tree3aa60944c6b6d78465cd02e17c788627b0beb980
parentbcca7d43c8dc1c96f060a3daff8f0e43c43129c2
libreplace: Add tests for connect and gethostbyname.

Provide dummy replacements when a function isnt found.
The functions are also searched for in certain libraries,
and variables SOCKET_LIBS and NSL_LIBS are set accordingly.

One purpose of this is to fix the getifaddrs tests on
systems where e.g. the socket calls require special libs
for linking.

Michael
(This used to be commit 900d17acb95f1becfc46656a12c107336c027ef7)
source4/lib/replace/libreplace.m4
source4/lib/replace/replace.h
source4/lib/replace/socket.c [new file with mode: 0644]
source4/lib/replace/socket.m4 [new file with mode: 0644]
source4/lib/replace/system/network.h