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
This commit is contained in:
Jens Arnold 2006-05-23 10:00:11 +00:00
parent 8325e0bf24
commit 25f386017c

View file

@ -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;