From 7caadefaa20afeb98a77f14c2948f03cde1d8786 Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Sat, 14 Feb 2009 12:30:23 -0500 Subject: f_frsize field is not ubiquitous. Check for it. --- source3/libsmb/libsmb_stat.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3') diff --git a/source3/libsmb/libsmb_stat.c b/source3/libsmb/libsmb_stat.c index dbe9f374cc..8987c2e38b 100644 --- a/source3/libsmb/libsmb_stat.c +++ b/source3/libsmb/libsmb_stat.c @@ -398,8 +398,12 @@ SMBC_fstatvfs_ctx(SMBCCTX *context, /* ... then provide it */ st->f_bsize = (unsigned long) bytes_per_sector; +#if HAVE_FRSIZE st->f_frsize = (unsigned long) sectors_per_allocation_unit; +#else +#warning "f_frsize field is not available" +#endif st->f_blocks = (fsblkcnt_t) total_allocation_units; st->f_bfree = -- cgit