Initial AROS support.
[deb_libnfs.git] / lib / libnfs-sync.c
index fd6f796e3f830a869fc0b6c8f849e4de1e8a7a57..2fe5ed5a5886a78ab0050a3af02ddb6ff0c98d37 100644 (file)
 #ifdef WIN32
 #include "win32_compat.h"
 #define DllExport
+#define HAVE_POLL_H
 #else
 #include <strings.h>
 #include <unistd.h>
-#ifndef ANDROID
-#include <sys/statvfs.h>
-#else
-#include <netinet/in.h>
-#include <sys/vfs.h>
-#define statvfs statfs
-#endif
-#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>