Commit 4c82456e authored by Miklos Szeredi's avatar Miklos Szeredi

fuse: fix type definitions in uapi header

Commit 7e98d530 (Synchronize fuse header with
one used in library) added #ifdef __linux__ around defines if it is not set.
The kernel build is self-contained and can be built on non-Linux toolchains.
After the mentioned commit builds on non-Linux toolchains will try to include
stdint.h and fail due to -nostdinc, and then fail with a bunch of undefined type
errors.

Fix by checking for __KERNEL__ instead of __linux__ and using the standard int
types instead of the linux specific ones.
Reported-by: default avatarArve Hjønnevåg <arve@android.com>
Reported-by: default avatarColin Cross <ccross@android.com>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
parent 41ef2d56
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment