1 2 3 4 5 6 7 8 9 10 11 12 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