diff -Nur apmd-orig/apmsleep.c apmd/apmsleep.c --- apmd-orig/apmsleep.c 2001-05-11 20:30:08.000000000 +0000 +++ apmd/apmsleep.c 2007-10-19 13:30:35.000000000 +0000 @@ -42,14 +42,24 @@ * */ +typedef unsigned char u8; +typedef unsigned short u16; +typedef unsigned int u32; + #include #include -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,2,0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) +#include +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0) +#include +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,2,0) #include #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) #include +#endif #include #include #include