]> git.pld-linux.org Git - packages/libfuse.git/blob - libfuse-arm64.patch
fix build on aarch64 (from debian)
[packages/libfuse.git] / libfuse-arm64.patch
1 Author: Riku Voipio <riku.voipio@linaro.org>
2 Description: fuse_kernel.h: clean includes
3  Use <linux/types.h> for linux and define types used for other operating systems
4  using <stdint.h> types (Closes: #752081).
5
6 diff -Naurp fuse.orig/include/fuse_kernel.h fuse/include/fuse_kernel.h
7 --- fuse.orig/include/fuse_kernel.h
8 +++ fuse/include/fuse_kernel.h
9 @@ -88,12 +88,16 @@
10  #ifndef _LINUX_FUSE_H
11  #define _LINUX_FUSE_H
12  
13 -#include <sys/types.h>
14 +#ifdef __linux__
15 +#include <linux/types.h>
16 +#else
17 +#include <stdint.h>
18  #define __u64 uint64_t
19  #define __s64 int64_t
20  #define __u32 uint32_t
21  #define __s32 int32_t
22  #define __u16 uint16_t
23 +#endif
24  
25  /*
26   * Version negotiation:
This page took 0.065707 seconds and 3 git commands to generate.