ZDR: remove dependency on zdr.h from the examples and nfs-ls
[deb_libnfs.git] / examples / nfsclient-listservers.c
index c4fc41e76c9ae52c1269f53afe53604aa17cddb3..a67e74f9de3c6caf9519470ea3f99ce764abce4f 100644 (file)
 
 /* 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 <stdio.h>
 #include <stdlib.h>
-#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);