[gnome-build-meta/abderrahim/aarch64-config-sub-guess] core-deps/fuse: import an upstream patch to fix build on aarch64
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/abderrahim/aarch64-config-sub-guess] core-deps/fuse: import an upstream patch to fix build on aarch64
- Date: Wed, 25 Apr 2018 06:23:23 +0000 (UTC)
commit b13cf623e3c986e0799fa2d6b2cae05160c5d5f0
Author: Abderrahim Kitouni <a kitouni gmail com>
Date: Sun Apr 22 10:15:10 2018 +0100
core-deps/fuse: import an upstream patch to fix build on aarch64
This patch never made it to the 2.9 series which gvfs depends on
elements/core-deps/fuse.bst | 2 ++
files/fuse/fuse-kernel-h-clean-includes.patch | 31 +++++++++++++++++++++++++++
2 files changed, 33 insertions(+)
---
diff --git a/elements/core-deps/fuse.bst b/elements/core-deps/fuse.bst
index 88f6b6a..7753bbc 100644
--- a/elements/core-deps/fuse.bst
+++ b/elements/core-deps/fuse.bst
@@ -2,5 +2,7 @@ kind: autotools
sources:
- kind: tar
url: github_com:libfuse/libfuse/releases/download/fuse-2.9.7/fuse-2.9.7.tar.gz
+- kind: patch
+ path: files/fuse/fuse-kernel-h-clean-includes.patch
depends:
- base.bst
diff --git a/files/fuse/fuse-kernel-h-clean-includes.patch b/files/fuse/fuse-kernel-h-clean-includes.patch
new file mode 100644
index 0000000..a5a2174
--- /dev/null
+++ b/files/fuse/fuse-kernel-h-clean-includes.patch
@@ -0,0 +1,31 @@
+commit 914871b20a901e3e1e981c92bc42b1c93b7ab81b
+Author: Riku Voipio <riku voipio linaro org>
+Date: Thu Feb 7 12:04:21 2013 +0100
+
+ fuse_kernel.h: clean includes
+
+ Use <linux/types.h> for linux and define types used for other operating systems
+ using <stdint.h> types.
+
+diff --git a/include/fuse_kernel.h b/include/fuse_kernel.h
+index 501450c..df8e9b9 100644
+--- a/include/fuse_kernel.h
++++ b/include/fuse_kernel.h
+@@ -91,12 +91,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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]