From d8143ff7d765363ccaea6881c424d217bb146361 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sun, 28 Aug 2011 19:29:08 +1000 Subject: [PATCH] Win32: the stat structure on win32 does not have blocks or blocksize --- lib/libnfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libnfs.c b/lib/libnfs.c index 80a7394..9e4a756 100644 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -671,8 +671,10 @@ static void nfs_stat_1_cb(struct rpc_context *rpc _U_, int status, void *command st.st_gid = res->GETATTR3res_u.resok.obj_attributes.gid; st.st_rdev = 0; st.st_size = res->GETATTR3res_u.resok.obj_attributes.size; +#if !defined(WIN32) st.st_blksize = 4096; st.st_blocks = res->GETATTR3res_u.resok.obj_attributes.size / 4096; +#endif st.st_atime = res->GETATTR3res_u.resok.obj_attributes.atime.seconds; st.st_mtime = res->GETATTR3res_u.resok.obj_attributes.mtime.seconds; st.st_ctime = res->GETATTR3res_u.resok.obj_attributes.ctime.seconds; -- 2.34.1