]> wimlib.net Git - wimlib/blobdiff - src/wimlib_internal.h
include WIMStruct->fp_tab only if WITH_FUSE
[wimlib] / src / wimlib_internal.h
index 9af0f3360255571a07aaf8de40712d0207733a5d..410281913c103431636feebaf9be3621e1dc2518 100644 (file)
 #ifndef _WIMLIB_INTERNAL_H
 #define _WIMLIB_INTERNAL_H
 
 #ifndef _WIMLIB_INTERNAL_H
 #define _WIMLIB_INTERNAL_H
 
+#include "config.h"
 #include "util.h"
 #include "list.h"
 
 #include "util.h"
 #include "list.h"
 
+#ifdef WITH_FUSE
 #include <pthread.h>
 #include <pthread.h>
+#endif
 
 struct stat;
 struct dentry;
 
 struct stat;
 struct dentry;
@@ -259,9 +262,11 @@ typedef struct WIMStruct {
        /* A pointer to the file indicated by @filename, opened for reading. */
        FILE  *fp;
 
        /* A pointer to the file indicated by @filename, opened for reading. */
        FILE  *fp;
 
+#ifdef WITH_FUSE
        FILE **fp_tab;
        size_t num_allocated_fps;
        pthread_mutex_t fp_tab_mutex;
        FILE **fp_tab;
        size_t num_allocated_fps;
        pthread_mutex_t fp_tab_mutex;
+#endif
 
        /* FILE pointer for the WIM file that is being written. */
        FILE  *out_fp;
 
        /* FILE pointer for the WIM file that is being written. */
        FILE  *out_fp;