From cb26451550ee7a9e321cc2fc1cc337579797ec30 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Wed, 23 Jun 2004 18:52:50 +0000 Subject: build fixes --- lib/fuse.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/fuse.c') diff --git a/lib/fuse.c b/lib/fuse.c index fe392f3..0009456 100644 --- a/lib/fuse.c +++ b/lib/fuse.c @@ -6,6 +6,7 @@ See the file COPYING.LIB */ +#include #include "fuse_i.h" #include @@ -331,11 +332,13 @@ static void convert_stat(struct stat *stbuf, struct fuse_attr *attr) attr->size = stbuf->st_size; attr->blocks = stbuf->st_blocks; attr->atime = stbuf->st_atime; - attr->atimensec = stbuf->st_atim.tv_nsec; attr->mtime = stbuf->st_mtime; - attr->mtimensec = stbuf->st_mtim.tv_nsec; attr->ctime = stbuf->st_ctime; +#ifdef HAVE_STRUCT_STAT_ST_ATIM + attr->atimensec = stbuf->st_atim.tv_nsec; + attr->mtimensec = stbuf->st_mtim.tv_nsec; attr->ctimensec = stbuf->st_ctim.tv_nsec; +#endif } static int fill_dir(struct fuse_dirhandle *dh, char *name, int type) -- cgit v1.2.3