summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@linaro.org>2013-02-07 12:04:21 +0100
committerEdward Cragg <edward.cragg@codethink.co.uk>2016-03-18 08:27:17 +0000
commite9b2eec7c5856032652bb8ff734174764e444c74 (patch)
tree7ad8effb307c5b880f719ef33f73152cedd4782b
parent6adcb719a933a31013c73fda8e0ccb0e13b45e58 (diff)
downloadfuse-e9b2eec7c5856032652bb8ff734174764e444c74.tar.gz
fuse_kernel.h: clean includesbaserock/fuse_2_9_4-fix-armv8
Use <linux/types.h> for linux and define types used for other operating systems using <stdint.h> types.
-rw-r--r--include/fuse_kernel.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/fuse_kernel.h b/include/fuse_kernel.h
index c632b58..9e02fe3 100644
--- a/include/fuse_kernel.h
+++ b/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: