SOCKET: Use recv/send for all socket io on all platforms
[deb_libnfs.git] / lib / libnfs-sync.c
index 35475571e5e951dada429263e42b0d8cde1f5216..2fe5ed5a5886a78ab0050a3af02ddb6ff0c98d37 100644 (file)
 #ifdef WIN32
 #include "win32_compat.h"
 #define DllExport
+#define HAVE_POLL_H
 #else
 #include <strings.h>
 #include <unistd.h>
-#include <sys/statvfs.h>
-#include <poll.h>
 #include <sys/ioctl.h>
 #include <netdb.h>
 #include <sys/socket.h>
 #include <net/if.h>
-#endif
+
+#ifdef AROS
+#include "aros_compat.h"
+#else
+#ifdef ANDROID
+#include <netinet/in.h>
+#include <sys/vfs.h>
+#define statvfs statfs
+#else
+#include <sys/statvfs.h>
+#endif /*ANDRIOD*/
+#endif /*AROS*/
+#endif /*WIN32*/
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
+#ifdef HAVE_POLL_H
+#include <poll.h>
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -48,6 +63,7 @@
 #include <sys/sockio.h>
 #endif
 
+#include "libnfs-zdr.h"
 #include "libnfs.h"
 #include "libnfs-raw.h"
 #include "libnfs-raw-mount.h"