The f_fsid field is not always an integer type. Don't set it in that case.
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>
Sat, 14 Feb 2009 17:27:40 +0000 (12:27 -0500)
committerDerrell Lipman <derrell.lipman@unwireduniverse.com>
Sat, 14 Feb 2009 17:27:40 +0000 (12:27 -0500)
source3/libsmb/libsmb_stat.c

index 3eec15f6bd2ed7256878d46d574f596e871ef5e1..dbe9f374cc39bf57e4a37f98e72b6a8712cfa27b 100644 (file)
@@ -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
                 }
         }