]> git.pld-linux.org Git - packages/libfuse.git/commitdiff
fix build on aarch64 (from debian)
authorJan Palus <atler@pld-linux.org>
Tue, 5 May 2020 20:22:07 +0000 (22:22 +0200)
committerJan Palus <atler@pld-linux.org>
Tue, 5 May 2020 20:22:07 +0000 (22:22 +0200)
libfuse-arm64.patch [new file with mode: 0644]
libfuse.spec

diff --git a/libfuse-arm64.patch b/libfuse-arm64.patch
new file mode 100644 (file)
index 0000000..66b7954
--- /dev/null
@@ -0,0 +1,26 @@
+Author: Riku Voipio <riku.voipio@linaro.org>
+Description: fuse_kernel.h: clean includes
+ Use <linux/types.h> for linux and define types used for other operating systems
+ using <stdint.h> types (Closes: #752081).
+
+diff -Naurp fuse.orig/include/fuse_kernel.h fuse/include/fuse_kernel.h
+--- fuse.orig/include/fuse_kernel.h
++++ fuse/include/fuse_kernel.h
+@@ -88,12 +88,16 @@
+ #ifndef _LINUX_FUSE_H
+ #define _LINUX_FUSE_H
+-#include <sys/types.h>
++#ifdef __linux__
++#include <linux/types.h>
++#else
++#include <stdint.h>
+ #define __u64 uint64_t
+ #define __s64 int64_t
+ #define __u32 uint32_t
+ #define __s32 int32_t
+ #define __u16 uint16_t
++#endif
+ /*
+  * Version negotiation:
index f779945ed732d67c8299c88992dbf12053cdbf2c..a96b348e9dd69ce104e5b151a59f3f9052509fe3 100644 (file)
@@ -9,6 +9,7 @@ Group:          Applications/System
 Source0:       https://github.com/libfuse/libfuse/releases/download/fuse-%{version}/fuse-%{version}.tar.gz
 # Source0-md5: 8000410aadc9231fd48495f7642f3312
 Patch0:                kernel-misc-fuse-Makefile.am.patch
+Patch1:                %{name}-arm64.patch
 URL:           https://github.com/libfuse/libfuse
 BuildRequires: autoconf >= 2.60
 BuildRequires: automake
@@ -92,6 +93,7 @@ Narzędzia do montowania systemów plików opartych na FUSE.
 %prep
 %setup -q -n fuse-%{version}
 %patch0 -p1
+%patch1 -p1
 
 sed -i '/FUSERMOUNT_PROG/s,fusermount,%{_bindir}/fusermount,' lib/mount.c
 
This page took 0.207047 seconds and 4 git commands to generate.