mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-13 20:33:22 +00:00
(retro_file.c) Buildfix for non-HAVE_BUFFERED_IO path
This commit is contained in:
parent
9ce3b9d916
commit
57f390e44d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user