[win32] - fixed bad number casting when using libnfs on 64bit win8 systems - force...
[deb_libnfs.git] / lib / libnfs.c
index 2915c9a99b6edf65123925490f3f696bc50f34c5..a1a62bb574dd7ef4cd8c7b280d5c6d09dea4048d 100644 (file)
@@ -713,7 +713,11 @@ static void nfs_stat_1_cb(struct rpc_context *rpc, int status, void *command_dat
        GETATTR3res *res;
        struct nfs_cb_data *data = private_data;
        struct nfs_context *nfs = data->nfs;
+#ifdef WIN32
+  struct __stat64 st;
+#else
        struct stat st;
+#endif
 
        assert(rpc->magic == RPC_CONTEXT_MAGIC);
 
@@ -2868,7 +2872,6 @@ 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;
@@ -2893,7 +2896,6 @@ int nfs_utime_async(struct nfs_context *nfs, const char *path, struct utimbuf *t
 
        return 0;
 }
-#endif
 
 
 /*