(retro_file.c) Buildfix for non-HAVE_BUFFERED_IO path

This commit is contained in:
twinaphex 2015-09-18 07:13:06 +02:00
parent 9ce3b9d916
commit 57f390e44d

View File

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