summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@linaro.org>2013-02-07 12:04:21 +0100
committerTiago Gomes <tiago.gomes@codethink.co.uk>2015-02-10 14:15:22 +0000
commitd69e627e79862e2df4ff9ff1ddb0363c4520d8a8 (patch)
treea513ce50cf4259c87f3c35a1f50a61fc2f4fded4
parent4163109fd5bfe67973262610dd95ae60888c92e9 (diff)
downloadfuse-d69e627e79862e2df4ff9ff1ddb0363c4520d8a8.tar.gz
fuse_kernel.h: clean includesbaserock/tiagogomes/armv8l64
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: