summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Robbins <drobbins@gentoo.org>2002-05-03 19:54:27 +0000
committerDaniel Robbins <drobbins@gentoo.org>2002-05-03 19:54:27 +0000
commit518aaac7b4089dac3afce0130205ad0bf38da24b (patch)
treeb65a4e54933f641f21b58f0ece1cf55a55d0fafe /sys-apps
parentClose bug #1472; thanks meekrob! :) (diff)
downloadgentoo-2-518aaac7b4089dac3afce0130205ad0bf38da24b.tar.gz
gentoo-2-518aaac7b4089dac3afce0130205ad0bf38da24b.tar.bz2
gentoo-2-518aaac7b4089dac3afce0130205ad0bf38da24b.zip
digesto
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/apmd/files/apmsleep.c.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys-apps/apmd/files/apmsleep.c.diff b/sys-apps/apmd/files/apmsleep.c.diff
new file mode 100644
index 000000000000..a5eff9adc76e
--- /dev/null
+++ b/sys-apps/apmd/files/apmsleep.c.diff
@@ -0,0 +1,13 @@
+--- apmsleep.c.orig Fri May 3 13:50:37 2002
++++ apmsleep.c Fri May 3 13:53:56 2002
+@@ -45,7 +45,9 @@
+ #include <stdio.h>
+ #include <linux/version.h>
+
+-#if LINUX_VERSION_CODE > KERNEL_VERSION(2,2,0)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
++#include <linux/spinlock.h>
++#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,2,0)
+ #include <asm/spinlock.h>
+ #endif
+