X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=package%2Futils%2Ffuse%2Fpatches%2F200-backport_arm64_fuse_kernel_h_clean_includes.patch;fp=package%2Futils%2Ffuse%2Fpatches%2F200-backport_arm64_fuse_kernel_h_clean_includes.patch;h=8436224e96e58e44af498821bb95c4f4fd32e34c;hb=61aaf18a1cf81399a89ab7d30f346df9a42842e1;hp=0000000000000000000000000000000000000000;hpb=383c113a59c5f2eee80b323a38d068d8a54ef69b;p=openwrt.git diff --git a/package/utils/fuse/patches/200-backport_arm64_fuse_kernel_h_clean_includes.patch b/package/utils/fuse/patches/200-backport_arm64_fuse_kernel_h_clean_includes.patch new file mode 100644 index 0000000000..8436224e96 --- /dev/null +++ b/package/utils/fuse/patches/200-backport_arm64_fuse_kernel_h_clean_includes.patch @@ -0,0 +1,34 @@ +From 914871b20a901e3e1e981c92bc42b1c93b7ab81b Mon Sep 17 00:00:00 2001 +From: Riku Voipio +Date: Thu, 07 Feb 2013 11:04:21 +0000 +Subject: fuse_kernel.h: clean includes + +Use for linux and define types used for other operating systems +using types. +--- +(limited to 'include/fuse_kernel.h') + +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 ++#ifdef __linux__ ++#include ++#else ++#include + #define __u64 uint64_t + #define __s64 int64_t + #define __u32 uint32_t + #define __s32 int32_t + #define __u16 uint16_t ++#endif + + /* + * Version negotiation: +-- +cgit v0.9.0.3-67-gacbf