extract.c: Don't compile unneeded code when WITH_NTFS_3G undefined
authorEric Biggers <ebiggers3@gmail.com>
Sat, 14 Jun 2014 04:45:56 +0000 (23:45 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sat, 14 Jun 2014 04:54:51 +0000 (23:54 -0500)
src/extract.c

index c312429cc7e9555e48ee43e514d9269219e5b24e..65e60dead1291bff6796b26cc4efd7f811313776 100644 (file)
@@ -612,12 +612,14 @@ dentry_calculate_extraction_name(struct wim_dentry *dentry,
        if (dentry_is_root(dentry))
                return 0;
 
+#ifdef WITH_NTFS_3G
        if (ctx->extract_flags & WIMLIB_EXTRACT_FLAG_NTFS) {
                dentry->d_extraction_name = dentry->file_name;
                dentry->d_extraction_name_nchars = dentry->file_name_nbytes /
                                                   sizeof(utf16lechar);
                return 0;
        }
+#endif
 
        if (!ctx->supported_features.case_sensitive_filenames) {
                struct wim_dentry *other;