X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Fnfsclient-listservers.c;h=db71520de7d1ccd27b97e983138e6763ee5f948c;hb=108c622a9561676b4df437c318959f79e42d4675;hp=a00ee1c9846336aef6faac72e9f3b02d7255fb28;hpb=fb0cf38eda70098ff0974911353c8e39925c28b9;p=deb_libnfs.git diff --git a/examples/nfsclient-listservers.c b/examples/nfsclient-listservers.c index a00ee1c..db71520 100644 --- a/examples/nfsclient-listservers.c +++ b/examples/nfsclient-listservers.c @@ -17,17 +17,24 @@ /* Example program showing sync interface to probe for all local servers */ +#ifdef AROS +#include "aros_compat.h" +#endif #include #include +#include "libnfs-zdr.h" #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);