blob: 83a796b239a6d0c2b1683c77858fa9b15dbc0510 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--- apmsleep.c 2003-12-31 13:29:52.000000000 +0000
+++ apmsleep.c.plasmaroo@gentoo.org 2003-12-31 13:35:06.000000000 +0000
@@ -45,11 +45,15 @@
#include <stdio.h>
#include <linux/version.h>
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2,2,0)
-#include <linux/spinlock.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+ #include <linux/rtc.h>
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,2,0)
+ #include <linux/spinlock.h>
#endif
-#include <linux/mc146818rtc.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
+ #include <linux/mc146818rtc.h>
+#endif
#include <sys/ioctl.h>
#include <sys/time.h>
#include <sys/types.h>
|