src/power/linux/SDL_syspower.c
changeset 3174 c8b9c6d27476
parent 3170 b7a48f533966
child 3186 51750b7a966f
     1.1 --- a/src/power/linux/SDL_syspower.c	Sun Jun 07 22:44:59 2009 +0000
     1.2 +++ b/src/power/linux/SDL_syspower.c	Mon Jun 08 19:24:38 2009 +0000
     1.3 @@ -27,6 +27,10 @@
     1.4  #include <stdio.h>
     1.5  #include <unistd.h>
     1.6  
     1.7 +#include <sys/types.h>
     1.8 +#include <sys/stat.h>
     1.9 +#include <fcntl.h>
    1.10 +
    1.11  #include "SDL_power.h"
    1.12  
    1.13  SDL_bool
    1.14 @@ -44,8 +48,8 @@
    1.15  }
    1.16  
    1.17  SDL_bool
    1.18 -SDL_GetPowerInfo_Linux_sys_proc_acpi(SDL_PowerState *state,
    1.19 -                                     int *seconds, int *percent)
    1.20 +SDL_GetPowerInfo_Linux_proc_acpi(SDL_PowerState *state,
    1.21 +				 int *seconds, int *percent)
    1.22  {
    1.23      return SDL_FALSE;  /* !!! FIXME: write me. */
    1.24  #if 0
    1.25 @@ -93,8 +97,8 @@
    1.26  
    1.27  /* http://lxr.linux.no/linux+v2.6.29/drivers/char/apm-emulation.c */
    1.28  SDL_bool
    1.29 -SDL_GetPowerInfo_Linux_sys_proc_apm(SDL_PowerState *state,
    1.30 -                                    int *seconds, int *percent)
    1.31 +SDL_GetPowerInfo_Linux_proc_apm(SDL_PowerState *state,
    1.32 +				int *seconds, int *percent)
    1.33  {
    1.34      SDL_bool need_details = SDL_FALSE;
    1.35      int ac_status = 0;