# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/.../apmd/hotfixes.patch # Copyright (C) 2007 The T2 SDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- T2-COPYRIGHT-NOTE-END --- 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