diff options
Diffstat (limited to 'uisimulator/sdl/lcd-charcell.c')
-rw-r--r-- | uisimulator/sdl/lcd-charcell.c | 6 |
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 @@ | |||
21 | #include "lcd.h" | 21 | #include "lcd.h" |
22 | #include "misc.h" | 22 | #include "misc.h" |
23 | #include <string.h> | 23 | #include <string.h> |
24 | #include <unistd.h> | ||
25 | #include <fcntl.h> | ||
24 | 26 | ||
25 | #include "lcd-playersim.h" | 27 | #include "lcd-playersim.h" |
26 | #include "uisdl.h" | 28 | #include "uisdl.h" |
@@ -28,8 +30,6 @@ | |||
28 | 30 | ||
29 | /* extern functions, needed for screendump() */ | 31 | /* extern functions, needed for screendump() */ |
30 | extern int sim_creat(const char *name, mode_t mode); | 32 | extern int sim_creat(const char *name, mode_t mode); |
31 | extern ssize_t write(int fd, const void *buf, size_t count); | ||
32 | extern int close(int fd); | ||
33 | 33 | ||
34 | SDL_Surface* lcd_surface; | 34 | SDL_Surface* lcd_surface; |
35 | SDL_Color lcd_color_zero = {UI_LCD_BGCOLOR, 0}; | 35 | SDL_Color lcd_color_zero = {UI_LCD_BGCOLOR, 0}; |
@@ -184,7 +184,7 @@ void screen_dump(void) | |||
184 | create_numbered_filename(filename, "", "dump_", ".bmp", 4); | 184 | create_numbered_filename(filename, "", "dump_", ".bmp", 4); |
185 | DEBUGF("screen_dump\n"); | 185 | DEBUGF("screen_dump\n"); |
186 | 186 | ||
187 | fd = sim_creat(filename, 1 /*O_WRONLY*/); | 187 | fd = sim_creat(filename, O_WRONLY); |
188 | if (fd < 0) | 188 | if (fd < 0) |
189 | return; | 189 | return; |
190 | 190 | ||