From 122123c4b298a688d43666d0355ca253070c1ea8 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 9 Feb 2004 17:10:33 -0800 Subject: [PATCH] Make a bit more palatable to user program inclusion. It's still wrong to include kernel headers from user programs. Oh, well. --- include/linux/compiler.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/compiler.h b/include/linux/compiler.h index ba3ef774bc17f..cc46aa0584f97 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -9,6 +9,8 @@ # define __kernel #endif +#ifdef __KERNEL__ + #ifndef __ASSEMBLY__ #if __GNUC__ > 3 # include /* catch-all for GCC 4, 5, etc. */ @@ -106,4 +108,6 @@ (typeof(ptr)) (__ptr + (off)); }) #endif +#endif /* __KERNEL__ */ + #endif /* __LINUX_COMPILER_H */ -- 2.53.0