From: Theodore Ts'o Date: Thu, 5 Dec 2024 03:08:46 +0000 (-0500) Subject: Fix portability for systems which don't have dlopen or libarchive X-Git-Tag: v1.47.2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a7832a5a1762fb60ec7bdeb9b6417f419070ffd;p=thirdparty%2Fe2fsprogs.git Fix portability for systems which don't have dlopen or libarchive Fixes: ecfd4dd1217a ("Decouple --without-libarchive and HAVE_ARCHIVE_H") Signed-off-by: Theodore Ts'o --- diff --git a/misc/create_inode_libarchive.c b/misc/create_inode_libarchive.c index d094d134..8a0fec32 100644 --- a/misc/create_inode_libarchive.c +++ b/misc/create_inode_libarchive.c @@ -17,7 +17,8 @@ #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. */