repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #89 from rosslagerwall/create-trunc
[deb_libnfs.git]
/
examples
/
nfsclient-listservers.c
diff --git
a/examples/nfsclient-listservers.c
b/examples/nfsclient-listservers.c
index fbb0e097e2854ad38da572026c0d435e5c48805f..a67e74f9de3c6caf9519470ea3f99ce764abce4f 100644
(file)
--- a/
examples/nfsclient-listservers.c
+++ b/
examples/nfsclient-listservers.c
@@
-17,30
+17,27
@@
/* Example program showing sync interface to probe for all local servers
*/
/* 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 <stdio.h>
-#include <unistd.h>
#include <stdlib.h>
#include <stdlib.h>
-#include <string.h>
-#include <poll.h>
-#include <errno.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <sys/time.h>
-#include <net/if.h>
-#include <netdb.h>
#include "libnfs.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;
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);
srvrs = nfs_find_local_servers();
for (srv=srvrs; srv; srv = srv->next) {
printf("NFS SERVER @ %s\n", srv->addr);