AROS fixes
[deb_libnfs.git] / lib / libnfs.c
index d2f60dac7cbc68d716f23212a8487f90ea07ab17..2915c9a99b6edf65123925490f3f696bc50f34c5 100644 (file)
 
 #ifdef WIN32
 #include "win32_compat.h"
-#else
-#include <strings.h>
+#endif
+
+#ifdef HAVE_UTIME_H
 #include <utime.h>
-#endif /*WIN32*/
+#endif
 
 #ifdef ANDROID
 #define statvfs statfs
 #include <sys/statvfs.h>
 #endif
 
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
 #include <stdio.h>
 #include <stdarg.h>
 #include <stdlib.h>
@@ -59,7 +68,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <netinet/in.h>
 #include "libnfs-zdr.h"
 #include "libnfs.h"
 #include "libnfs-raw.h"
@@ -2860,6 +2868,7 @@ int nfs_utimes_async(struct nfs_context *nfs, const char *path, struct timeval *
 /*
  * Async utime()
  */
+#ifdef HAVE_UTIME_H
 int nfs_utime_async(struct nfs_context *nfs, const char *path, struct utimbuf *times, nfs_cb cb, void *private_data)
 {
        struct timeval *new_times = NULL;
@@ -2884,9 +2893,7 @@ int nfs_utime_async(struct nfs_context *nfs, const char *path, struct utimbuf *t
 
        return 0;
 }
-
-
-
+#endif
 
 
 /*