--- /dev/null
+--- zfs-fuse-0.7.2.2/src/lib/libsolcompat/include/sys/isa_defs.h.orig 2015-11-24 17:32:31.000000000 +0100
++++ zfs-fuse-0.7.2.2/src/lib/libsolcompat/include/sys/isa_defs.h 2023-12-29 22:00:13.162078148 +0100
+@@ -241,13 +241,18 @@ extern "C" {
+ #define _INT_ALIGNMENT 4
+ #define _FLOAT_ALIGNMENT 4
+ #define _FLOAT_COMPLEX_ALIGNMENT 4
++#ifdef _ILP32
++#define _LONG_ALIGNMENT 4
++#define _POINTER_ALIGNMENT 4
++#else
+ #define _LONG_ALIGNMENT 8
++#define _POINTER_ALIGNMENT 8
++#endif
+ #define _LONG_LONG_ALIGNMENT 8
+ #define _DOUBLE_ALIGNMENT 8
+ #define _DOUBLE_COMPLEX_ALIGNMENT 8
+ #define _LONG_DOUBLE_ALIGNMENT 16
+ #define _LONG_DOUBLE_COMPLEX_ALIGNMENT 16
+-#define _POINTER_ALIGNMENT 8
+ #define _MAX_ALIGNMENT 16
+ #define _ALIGNMENT_REQUIRED 1
+
+@@ -259,7 +264,7 @@ extern "C" {
+ /*
+ * Define the appropriate "implementation choices".
+ */
+-#if !defined(_LP64)
++#if !defined(_LP64) && !defined(_ILP32)
+ #define _LP64
+ #endif
+ #if !defined(_I32LPx) && defined(_KERNEL)
Patch4: %{name}-format.patch
Patch5: %{name}-common.patch
Patch6: %{name}-xattr.patch
+Patch7: %{name}-x32.patch
URL: https://github.com/gordan-bobic/zfs-fuse
# also (but no tags)
#URL: https://github.com/zfs-fuse/zfs-fuse
BuildRequires: rpmbuild(macros) >= 1.337
BuildRequires: scons
BuildRequires: zlib-devel
-ExclusiveArch: %{ix86} %{x8664}
+ExclusiveArch: %{ix86} %{x8664} x32 sparc sparcv9 sparc64 ppc ppc64 armel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%patch4 -p1
%patch5 -p1
%patch6 -p1
+%patch7 -p1
%build
cd src