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 12:56:12 +0000 (13:56 +0100)
commitc19f7a0e1004213f95e0bf8db5cd1f6697c7a47b
treed65167988d96a9e1112c01e5d7545ffdee10c840
parent622667c0790c0092bfceced8dc6fb05e781ac5e7
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
source/lib/replace/libreplace.m4
source/lib/replace/replace.h
source/lib/replace/socket.c [new file with mode: 0644]
source/lib/replace/socket.m4 [new file with mode: 0644]
source/lib/replace/system/network.h