lkml.org 
[lkml]   [2004]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] 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.orig 2004-11-19 14:30:45.047279312 +0100
+++ ./include/linux/mc146818rtc.h 2004-11-19 14:32:04.137255808 +0100
@@ -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
\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.031 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site