Merge pull request #4972 from alucryd/gcc710

Fix compilation with GCC 7.1.0
This commit is contained in:
Twinaphex 2017-05-25 13:44:05 +02:00 committed by GitHub
commit 056af331aa

View File

@ -235,7 +235,7 @@ RFILE *filestream_open(const char *path, unsigned mode, ssize_t len)
#endif #endif
{ {
/* FIXME: HAVE_BUFFERED_IO is always 1, but if it is ever changed, open() needs to be changed to _wopen() for WIndows. */ /* FIXME: HAVE_BUFFERED_IO is always 1, but if it is ever changed, open() needs to be changed to _wopen() for WIndows. */
stream->fd = open(path, flags); stream->fd = open(path, flags, mode_int);
if (stream->fd == -1) if (stream->fd == -1)
goto error; goto error;
#ifdef HAVE_MMAP #ifdef HAVE_MMAP