Fixes: ecfd4dd1217a ("Decouple --without-libarchive and HAVE_ARCHIVE_H")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
#include "create_inode_libarchive.h"
#include "support/nls-enable.h"
-#ifdef CONFIG_DISABLE_LIBARCHIVE
+#if (!(defined(CONFIG_DLOPEN_LIBARCHIVE) || defined(HAVE_ARCHIVE_H)) || \
+ defined(CONFIG_DIABLE_LIBARCHIVE))
/* If ./configure was run with --without-libarchive, then only
* __populate_fs_from_tar() remains in this file and will return an error. */