X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Flibnfs.c;h=a1a62bb574dd7ef4cd8c7b280d5c6d09dea4048d;hb=be184101ca7251c15184e6af3880680018011e32;hp=97663ac658ff2fe4d2285b7833c2c5bb8c79482b;hpb=67a9f57e67c3b2c147969c752532fd55eb99259c;p=deb_libnfs.git diff --git a/lib/libnfs.c b/lib/libnfs.c index 97663ac..a1a62bb 100644 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -27,11 +27,11 @@ #ifdef WIN32 #include "win32_compat.h" -#else -#include +#endif + +#ifdef HAVE_UTIME_H #include -#include -#endif /*WIN32*/ +#endif #ifdef ANDROID #define statvfs statfs @@ -51,6 +51,14 @@ #include #endif +#ifdef HAVE_NETINET_IN_H +#include +#endif + +#ifdef HAVE_STRINGS_H +#include +#endif + #include #include #include @@ -705,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); @@ -2886,9 +2898,6 @@ int nfs_utime_async(struct nfs_context *nfs, const char *path, struct utimbuf *t } - - - /* * Async access() */