f_frsize field is not ubiquitous. Check for it.
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>
Sat, 14 Feb 2009 17:30:23 +0000 (12:30 -0500)
committerDerrell Lipman <derrell.lipman@unwireduniverse.com>
Sat, 14 Feb 2009 17:30:23 +0000 (12:30 -0500)
source3/libsmb/libsmb_stat.c

index dbe9f374cc39bf57e4a37f98e72b6a8712cfa27b..8987c2e38be1c2dedc0c8a3a7b39d5b807e4f6a7 100644 (file)
@@ -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 =