summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-05-23 10:00:11 +0000
committerJens Arnold <amiconn@rockbox.org>2006-05-23 10:00:11 +0000
commit25f386017cae545310dcaa7afd479afd498ef863 (patch)
treeee226e1a5322656541229daf0b0e869e3556afd8 /uisimulator
parent8325e0bf24f6a35f44ec5890606c5a8355d1bb24 (diff)
downloadrockbox-25f386017cae545310dcaa7afd479afd498ef863.tar.gz
rockbox-25f386017cae545310dcaa7afd479afd498ef863.tar.bz2
rockbox-25f386017cae545310dcaa7afd479afd498ef863.zip
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
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/sdl/lcd-charcell.c6
1 files changed, 3 insertions, 3 deletions
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 <string.h>
+#include <unistd.h>
+#include <fcntl.h>
#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;