--- 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 #include -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,2,0) -#include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) + #include +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,2,0) + #include #endif -#include +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) + #include +#endif #include #include #include