diff -Naur xfce4-battery-plugin-0.5.0/panel-plugin/libapm.h xfce4-battery-plugin-0.5.0.tpg/panel-plugin/libapm.h --- xfce4-battery-plugin-0.5.0/panel-plugin/libapm.h 2007-01-17 17:56:51.000000000 +0000 +++ xfce4-battery-plugin-0.5.0.tpg/panel-plugin/libapm.h 2008-04-15 23:34:04.000000000 +0000 @@ -17,8 +17,9 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <linux/apm_bios.h> +#include <features.h> #include <sys/types.h> +#include <linux/apm_bios.h> #define APM_PROC "/proc/apm" #define APM_DEVICE "/dev/apm_bios" @@ -30,6 +31,9 @@ #define APM_32_BIT_SUPPORT 0x0002 #endif +typedef unsigned short apm_event_t; +typedef unsigned short apm_eventinfo_t; + typedef struct apm_info { const char driver_version[10];