diff options
Diffstat (limited to 'sys-apps/apmd/files/apmd-3.2.0.kernel26x.patch')
-rw-r--r-- | sys-apps/apmd/files/apmd-3.2.0.kernel26x.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sys-apps/apmd/files/apmd-3.2.0.kernel26x.patch b/sys-apps/apmd/files/apmd-3.2.0.kernel26x.patch new file mode 100644 index 000000000000..83a796b239a6 --- /dev/null +++ b/sys-apps/apmd/files/apmd-3.2.0.kernel26x.patch @@ -0,0 +1,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> |