aboutsummaryrefslogtreecommitdiff
path: root/include/fuse_kernel.h
diff options
context:
space:
mode:
authorGravatar Riku Voipio <riku.voipio@linaro.org>2013-02-07 12:04:21 +0100
committerGravatar Miklos Szeredi <mszeredi@suse.cz>2013-02-07 12:04:21 +0100
commit914871b20a901e3e1e981c92bc42b1c93b7ab81b (patch)
tree2d694ba5a89a981fe6bad51254b53ba7d6879245 /include/fuse_kernel.h
parent9ba76b906498d443eb811b8e88e2b92910893d13 (diff)
fuse_kernel.h: clean includes
Use <linux/types.h> for linux and define types used for other operating systems using <stdint.h> types.
Diffstat (limited to 'include/fuse_kernel.h')
-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 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 <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: