fuse: Fix build after change to synchronize with library
PATCH 1/1 fuse: Fix build after change to synchronize with library
__linux__ is not always defined so check __KERNEL__ as well.
Signed-off-by Arve Hjønnevåg <[email protected]>
--- include/uapi/linux/fuse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/linux/fuse.h +1 -1
@@ -95,7 +95,7 @@#ifndef _LINUX_FUSE_H#define _LINUX_FUSE_H -#ifdef __linux__ +#if defined(__KERNEL__) || defined(__linux__)#include <linux/types.h> #else #include <stdint.h>
Signature · 1 line
1.8.1.3
Quoted 12 lines · Arve Hjønnevåg
__linux__is not always defined so check__KERNEL__as well.Signed-off-by Arve Hjønnevåg <[email protected]>--- include/uapi/linux/fuse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/uapi/linux/fuse.h +0
-0
include/uapi/linux/fuse.h line 98
Quoted 5 lines
include/uapi/linux/fuse.h +1
-1@@ -95,7 +95,7 @@#ifndef _LINUX_FUSE_H#define _LINUX_FUSE_H -#ifdef __linux__ +#if defined(__KERNEL__) || defined(__linux__)
Or how about just
#ifdef __KERNEL__
?
Thanks,
Miklos
Quoted 16 lines · Miklos Szeredi
Quoted 15 lines · Arve Hjønnevåg
__linux__is not always defined so check__KERNEL__as well.Signed-off-by Arve Hjønnevåg <[email protected]>--- include/uapi/linux/fuse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/uapi/linux/fuse.h +0
-0@@ -95,7 +95,7 @@#ifndef _LINUX_FUSE_H#define _LINUX_FUSE_H
Quoted 7 lines
include/uapi/linux/fuse.h line 98
Quoted 2 lines
include/uapi/linux/fuse.h +1
-1-#ifdef __linux__ +#if defined(__KERNEL__) || defined(__linux__)Or how about just
#ifdef
__KERNEL__
I don't think that will give you the same behavior when compiling user-space code.
Signature · 1 line
Arve Hjønnevåg