X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Fnfsclient-listservers.c;h=a67e74f9de3c6caf9519470ea3f99ce764abce4f;hb=2db42ce2fc89bc88050564037688888bbb8876e9;hp=d1d24b016f51c70f690bc454d43c01ec4801a230;hpb=9ab4d56ef98e001a82feb2b6dba2cd4e76813618;p=deb_libnfs.git diff --git a/examples/nfsclient-listservers.c b/examples/nfsclient-listservers.c index d1d24b0..a67e74f 100644 --- a/examples/nfsclient-listservers.c +++ b/examples/nfsclient-listservers.c @@ -17,26 +17,27 @@ /* 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.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);