From 20b5e6465938ee81e4d0657f8dd493ff97ec53aa Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Sat, 14 Feb 2009 12:27:40 -0500 Subject: The f_fsid field is not always an integer type. Don't set it in that case. --- source3/libsmb/libsmb_stat.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/libsmb/libsmb_stat.c') diff --git a/source3/libsmb/libsmb_stat.c b/source3/libsmb/libsmb_stat.c index 3eec15f6bd..dbe9f374cc 100644 --- a/source3/libsmb/libsmb_stat.c +++ b/source3/libsmb/libsmb_stat.c @@ -441,9 +441,14 @@ SMBC_fstatvfs_ctx(SMBCCTX *context, (fsfilcnt_t) total_file_nodes; st->f_ffree = (fsfilcnt_t) free_file_nodes; +#if HAVE_FSID_INT st->f_fsid = (unsigned long) fs_identifier; +#else +#warning "f_fsid is not an integer type so is not available" + /* We don't know the type, so don't try to set it */ +#endif } } -- cgit