8436224e96e58e44af498821bb95c4f4fd32e34c
[openwrt/openwrt.git] / package / utils / fuse / patches / 200-backport_arm64_fuse_kernel_h_clean_includes.patch
1 From 914871b20a901e3e1e981c92bc42b1c93b7ab81b Mon Sep 17 00:00:00 2001
2 From: Riku Voipio <riku.voipio@linaro.org>
3 Date: Thu, 07 Feb 2013 11:04:21 +0000
4 Subject: fuse_kernel.h: clean includes
5
6 Use <linux/types.h> for linux and define types used for other operating systems
7 using <stdint.h> types.
8 ---
9 (limited to 'include/fuse_kernel.h')
10
11 diff --git a/include/fuse_kernel.h b/include/fuse_kernel.h
12 index 501450c..df8e9b9 100644
13 --- a/include/fuse_kernel.h
14 +++ b/include/fuse_kernel.h
15 @@ -91,12 +91,16 @@
16 #ifndef _LINUX_FUSE_H
17 #define _LINUX_FUSE_H
18
19 -#include <sys/types.h>
20 +#ifdef __linux__
21 +#include <linux/types.h>
22 +#else
23 +#include <stdint.h>
24 #define __u64 uint64_t
25 #define __s64 int64_t
26 #define __u32 uint32_t
27 #define __s32 int32_t
28 #define __u16 uint16_t
29 +#endif
30
31 /*
32 * Version negotiation:
33 --
34 cgit v0.9.0.3-67-gacbf