From 4c089f74e9901c4b3fb85f6f461270e3dbecfed0 Mon Sep 17 00:00:00 2001 From: Michael Obster Date: Sun, 21 Nov 2004 16:44:01 -0800 Subject: [PATCH] mc146818rtc.h include fix Prevents user-space including spinlock.h which breaks the build. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/linux/mc146818rtc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/linux') diff --git a/include/linux/mc146818rtc.h b/include/linux/mc146818rtc.h index cde7dbae375e..bbc93ae217e1 100644 --- a/include/linux/mc146818rtc.h +++ b/include/linux/mc146818rtc.h @@ -13,10 +13,12 @@ #include #include /* get the user-level API */ -#include /* spinlock_t */ #include /* register access macros */ +#ifdef __KERNEL__ +#include /* spinlock_t */ extern spinlock_t rtc_lock; /* serialize CMOS RAM access */ +#endif /********************************************************************** * register summary -- cgit v1.2.3