projects
/
qemu-gpiodev
/
libfuse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ba76b9
)
fuse_kernel.h: clean includes
author
Riku Voipio
<riku.voipio@linaro.org>
Thu, 7 Feb 2013 11:04:21 +0000
(12:04 +0100)
committer
Miklos Szeredi
<mszeredi@suse.cz>
Thu, 7 Feb 2013 11:04:21 +0000
(12:04 +0100)
Use <linux/types.h> for linux and define types used for other operating systems
using <stdint.h> types.
include/fuse_kernel.h
patch
|
blob
|
history
diff --git
a/include/fuse_kernel.h
b/include/fuse_kernel.h
index 501450cce54033b7414d86a7d23aabf5f3be9c66..df8e9b9c9ef213a7690d69fb2ad05f188ce6fcfe 100644
(file)
--- 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: