2.6: mc146818rtc.h
PATCH 1/1 2.6: mc146818rtc.h
Hi,
this patch prevents user-space including spinlock.h which breaks the build.
Cheers,
Michael Obster
---
This will rock you. - http://www.rocklinux.org
include/linux/mc146818rtc.h renamed from include/linux/mc146818rtc.h.orig +3 -1
@@ -13,10 +13,12 @@#include <asm/io.h> #include <linux/rtc.h> /* get the user-level API */ -#include <linux/spinlock.h> /* spinlock_t */ #include <asm/mc146818rtc.h> /* register access macros */ +#ifdef __KERNEL__ +#include <linux/spinlock.h> /* spinlock_t */ extern spinlock_t rtc_lock;/* serialize CMOS RAM access */ +#endif /********************************************************************** * register summary