AROS fixes
[deb_libnfs.git] / lib / libnfs.c
index 543b0ce9ec89a7293e129213e7158c6d150ded77..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 <netinet/in.h>
 #endif
 
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
 #include <stdio.h>
 #include <stdarg.h>
 #include <stdlib.h>
@@ -2863,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;
@@ -2887,9 +2893,7 @@ int nfs_utime_async(struct nfs_context *nfs, const char *path, struct utimbuf *t
 
        return 0;
 }
-
-
-
+#endif
 
 
 /*