From 25f386017cae545310dcaa7afd479afd498ef863 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Tue, 23 May 2006 10:00:11 +0000 Subject: Fix red playersim build on linux, and make it a bit less hackish. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9978 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/sdl/lcd-charcell.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'uisimulator/sdl') diff --git a/uisimulator/sdl/lcd-charcell.c b/uisimulator/sdl/lcd-charcell.c index 9cc53381c6..8b93653a19 100644 --- a/uisimulator/sdl/lcd-charcell.c +++ b/uisimulator/sdl/lcd-charcell.c @@ -21,6 +21,8 @@ #include "lcd.h" #include "misc.h" #include +#include +#include #include "lcd-playersim.h" #include "uisdl.h" @@ -28,8 +30,6 @@ /* extern functions, needed for screendump() */ extern int sim_creat(const char *name, mode_t mode); -extern ssize_t write(int fd, const void *buf, size_t count); -extern int close(int fd); SDL_Surface* lcd_surface; SDL_Color lcd_color_zero = {UI_LCD_BGCOLOR, 0}; @@ -184,7 +184,7 @@ void screen_dump(void) create_numbered_filename(filename, "", "dump_", ".bmp", 4); DEBUGF("screen_dump\n"); - fd = sim_creat(filename, 1 /*O_WRONLY*/); + fd = sim_creat(filename, O_WRONLY); if (fd < 0) return; -- cgit v1.2.3