Mercurial > sdl-ios-xcode
diff src/power/linux/SDL_syspower.c @ 3174:c8b9c6d27476
Fixed some typos and added a couple of includes. All were need to get SDL_power to compile on Linux.
Sam, you might want to check to see that the spellings I picked are the spellings you wanted.
author | Bob Pendleton <bob@pendleton.com> |
---|---|
date | Mon, 08 Jun 2009 19:24:38 +0000 |
parents | b7a48f533966 |
children | 51750b7a966f |
line wrap: on
line diff
--- a/src/power/linux/SDL_syspower.c Sun Jun 07 22:44:59 2009 +0000 +++ b/src/power/linux/SDL_syspower.c Mon Jun 08 19:24:38 2009 +0000 @@ -27,6 +27,10 @@ #include <stdio.h> #include <unistd.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> + #include "SDL_power.h" SDL_bool @@ -44,8 +48,8 @@ } SDL_bool -SDL_GetPowerInfo_Linux_sys_proc_acpi(SDL_PowerState *state, - int *seconds, int *percent) +SDL_GetPowerInfo_Linux_proc_acpi(SDL_PowerState *state, + int *seconds, int *percent) { return SDL_FALSE; /* !!! FIXME: write me. */ #if 0 @@ -93,8 +97,8 @@ /* http://lxr.linux.no/linux+v2.6.29/drivers/char/apm-emulation.c */ SDL_bool -SDL_GetPowerInfo_Linux_sys_proc_apm(SDL_PowerState *state, - int *seconds, int *percent) +SDL_GetPowerInfo_Linux_proc_apm(SDL_PowerState *state, + int *seconds, int *percent) { SDL_bool need_details = SDL_FALSE; int ac_status = 0;