From 57f390e44d1e3581699b8d0607600e805ee9434d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 18 Sep 2015 07:13:06 +0200 Subject: [PATCH] (retro_file.c) Buildfix for non-HAVE_BUFFERED_IO path --- libretro-common/file/retro_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretro-common/file/retro_file.c b/libretro-common/file/retro_file.c index 1d4b1ee02b..e378323ac5 100644 --- a/libretro-common/file/retro_file.c +++ b/libretro-common/file/retro_file.c @@ -97,7 +97,7 @@ RFILE *retro_fopen(const char *path, unsigned mode, ssize_t len) #elif defined(HAVE_BUFFERED_IO) mode_str = "wb"; #else - flags = O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR; + flags = O_WRONLY | O_CREAT | O_TRUNC | S_IRUSR | S_IWUSR; #endif break; case RFILE_MODE_READ_WRITE: @@ -128,7 +128,7 @@ RFILE *retro_fopen(const char *path, unsigned mode, ssize_t len) goto error; #else if (stream->fd == -1) - goto error + goto error; #endif return stream;