From fe5d42f77d29e7941c70d33c923c9867a5aec853 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 27 Jul 2005 10:38:08 +0000 Subject: [PATCH] Clifford Wolf: Fixed kernel header asm/mc146818rtc_h for various user space apps which do include it (e.g. apmd). [2005072214370329894] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@6265 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- .../base/linux/linux26/77-mc146818rtc_h.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/base/linux/linux26/77-mc146818rtc_h.patch diff --git a/package/base/linux/linux26/77-mc146818rtc_h.patch b/package/base/linux/linux26/77-mc146818rtc_h.patch new file mode 100644 index 000000000..39dc54249 --- /dev/null +++ b/package/base/linux/linux26/77-mc146818rtc_h.patch @@ -0,0 +1,33 @@ +--- linux-2.6.12.3/include/asm-i386/mc146818rtc.h ++++ linux-2.6.12.3/include/asm-i386/mc146818rtc.h +@@ -5,14 +5,21 @@ + #define _ASM_MC146818RTC_H + + #include ++ ++#ifdef __KERNEL__ ++ + #include + #include + ++#endif /* __KERNEL__ */ ++ + #ifndef RTC_PORT + #define RTC_PORT(x) (0x70 + (x)) + #define RTC_ALWAYS_BCD 1 /* RTC operates in binary mode */ + #endif + ++#ifdef __KERNEL__ ++ + #ifdef __HAVE_ARCH_CMPXCHG + /* + * This lock provides nmi access to the CMOS/RTC registers. It has some +@@ -80,6 +87,8 @@ + #define current_lock_cmos_reg() 0 + #endif + ++#endif /* __KERNEL__ */ ++ + /* + * The yet supported machines all access the RTC index register via + * an ISA port access but the way to access the date register differs ...