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)
commit7bdd648477c49dc7e23f832b2438bef673398fbf
treea58a8fe2e8daae01ad28546b7a81da1f57c8ff97
parentdf3939da940c5f5cca9d0b782c84a0427c5b6b3a
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 c19f7a0e1004213f95e0bf8db5cd1f6697c7a47b)
source3/lib/replace/libreplace.m4
source3/lib/replace/replace.h
source3/lib/replace/socket.c [new file with mode: 0644]
source3/lib/replace/socket.m4 [new file with mode: 0644]
source3/lib/replace/system/network.h