diff options
Diffstat (limited to 'stream/stream_file.c')
-rw-r--r-- | stream/stream_file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stream/stream_file.c b/stream/stream_file.c index eef0dcc5cc..a78cda1f89 100644 --- a/stream/stream_file.c +++ b/stream/stream_file.c @@ -29,6 +29,7 @@ #include "osdep/io.h" +#include "common/common.h" #include "common/msg.h" #include "stream.h" #include "options/m_option.h" @@ -253,7 +254,7 @@ static int open_f(stream_t *stream) fd = open(filename, m | O_BINARY, openmode); if (fd < 0) { MP_ERR(stream, "Cannot open file '%s': %s\n", - filename, strerror(errno)); + filename, mp_strerror(errno)); return STREAM_ERROR; } struct stat st; |