diff --git a/src/autoconf.c b/src/autoconf.c index 54c35a6..a537418 100644 --- a/src/autoconf.c +++ b/src/autoconf.c @@ -184,7 +184,7 @@ static uae_u32 REGPARAM2 uae_puts (TrapContext *context) static void rtarea_init_mem (void) { - rtarea = mapped_malloc (0x100000, "rtarea"); + rtarea = mapped_malloc (0x10000, "rtarea"); if (!rtarea) { write_log ("virtual memory exhausted (rtarea)!\n"); abort (); diff --git a/src/fsusage.c b/src/fsusage.c index cac5a7d..1b43337 100644 --- a/src/fsusage.c +++ b/src/fsusage.c @@ -364,7 +364,7 @@ get_fs_usage (path, disk, fsp) #endif /* STAT_STATVFS */ -#if !defined(STAT_STATFS2_FS_DATA) && !defined(STAT_READ_FILSYS) && !defined(GEKKO) +#if !defined(STAT_STATFS2_FS_DATA) && !defined(STAT_READ_FILSYS) /* !Ultrix && !SVR2 */ fsp->fsu_blocks = CONVERT_BLOCKS (fsd.f_blocks); diff --git a/src/gfx-sdl/sdlgfx.c b/src/gfx-sdl/sdlgfx.c index b82718b..18a2d7e 100644 --- a/src/gfx-sdl/sdlgfx.c +++ b/src/gfx-sdl/sdlgfx.c @@ -1421,7 +1421,9 @@ int debuggable (void) int mousehack_allowed (void) { +#ifdef GEKKO return 0; +#endif return mousehack; } diff --git a/src/include/sysdeps.h b/src/include/sysdeps.h index 7c20fc0..3435d59 100644 --- a/src/include/sysdeps.h +++ b/src/include/sysdeps.h @@ -335,12 +335,7 @@ extern int gui_message_multibutton (int flags, const char *format,...); #endif #ifdef GEKKO -/* Technically not true, but looking at libfat, it seems like - * unlink can remove directories as well */ -# define rmdir unlink - /* Definately problems! */ -//# define chmod(a,b) # define dup(fd) fd # define utime(filename, buf) 0 #endif diff --git a/src/od-generic/main.c b/src/od-generic/main.c index 99ea6af..7ea6020 100644 --- a/src/od-generic/main.c +++ b/src/od-generic/main.c @@ -35,7 +35,7 @@ static RETSIGTYPE sigbrkhandler (int foo) void setup_brkhandler (void) { -#if defined(__unix) && !defined(__NeXT__) && !defined(GEKKO) +#if defined(__unix) && !defined(__NeXT__) struct sigaction sa; sa.sa_handler = sigbrkhandler; sa.sa_flags = 0;