*** yabause.c	Fri Jun 24 23:32:28 2011
--- yabause.c	Wed Aug 18 11:35:46 2010
***************
*** 42,48 ****
  #include "bios.h"
  #include "movie.h"
  #ifdef HAVE_LIBSDL
!  #ifdef __APPLE__
    #include <SDL/SDL.h>
   #else
    #include "SDL.h"
--- 42,48 ----
  #include "bios.h"
  #include "movie.h"
  #ifdef HAVE_LIBSDL
!  #if defined(__APPLE__) || defined(GEKKO)
    #include <SDL/SDL.h>
   #else
    #include "SDL.h"
***************
*** 58,64 ****
  #endif
  #ifdef GEKKO
  #include <ogc/lwp_watchdog.h>
! extern long long gettime();
  #endif
  #ifdef PSP
  #include "psp/common.h"
--- 58,64 ----
  #endif
  #ifdef GEKKO
  #include <ogc/lwp_watchdog.h>
! //extern long long gettime();
  #endif
  #ifdef PSP
  #include "psp/common.h"
***************
*** 107,114 ****
     const double freq_mult = (freqtype == CLKTYPE_26MHZ) ? 15.0/16.0 : 1.0;
     const double freq_shifted = (freq_base * freq_mult) * (1 << YABSYS_TIMING_BITS);
     const double usec_shifted = 1.0e6 * (1 << YABSYS_TIMING_BITS);
     const double deciline_time = yabsys.IsPal ? 1.0 /  50        / 313 / 10
                                               : 1.0 / (60/1.001) / 263 / 10;
  
     yabsys.DecilineCount = 0;
     yabsys.LineCount = 0;
--- 107,119 ----
     const double freq_mult = (freqtype == CLKTYPE_26MHZ) ? 15.0/16.0 : 1.0;
     const double freq_shifted = (freq_base * freq_mult) * (1 << YABSYS_TIMING_BITS);
     const double usec_shifted = 1.0e6 * (1 << YABSYS_TIMING_BITS);
+ #ifndef GEKKO
     const double deciline_time = yabsys.IsPal ? 1.0 /  50        / 313 / 10
                                               : 1.0 / (60/1.001) / 263 / 10;
+ #else
+    const double deciline_time = yabsys.IsPal ? 1.0 /  50.0        / 313.0 / 10.0
+                                              : 1.0 / (60.0/1.001) / 263.0 / 10.0;
+ #endif
  
     yabsys.DecilineCount = 0;
     yabsys.LineCount = 0;
