X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Fnfsclient-listservers.c;h=e275e7f6ed904dde67a988f9789bbfa7de9dd196;hb=8e003243fbec4cff4af3e9ca01ea713065336970;hp=fbb0e097e2854ad38da572026c0d435e5c48805f;hpb=552c766578d37c4d1eb150436da7eeed104f1fe9;p=deb_libnfs.git diff --git a/examples/nfsclient-listservers.c b/examples/nfsclient-listservers.c index fbb0e09..e275e7f 100644 --- a/examples/nfsclient-listservers.c +++ b/examples/nfsclient-listservers.c @@ -17,30 +17,28 @@ /* Example program showing sync interface to probe for all local servers */ +#ifdef AROS +#include "aros_compat.h" +#endif + +#ifdef WIN32 +#include "win32_compat.h" +#endif #include -#include #include -#include -#include -#include -#include -#include -#include -#include -#include +#include "libnfs-zdr.h" #include "libnfs.h" -#include "libnfs-raw.h" -#include "libnfs-raw-mount.h" -#include "libnfs-raw-portmap.h" -#include "libnfs-private.h" - int main(int argc _U_, char *argv[] _U_) { struct nfs_server_list *srvrs; struct nfs_server_list *srv; +#ifdef AROS + aros_init_socket(); +#endif + srvrs = nfs_find_local_servers(); for (srv=srvrs; srv; srv = srv->next) { printf("NFS SERVER @ %s\n", srv->addr);