From c727e8698020f69516cb62e001ac6f8254025fe1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 20 May 2010 06:59:25 +0200 Subject: input/file, output/{fifo,recorder}: add O_BINARY to open() flags Windows compatibility. --- src/input/file_input_plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input') diff --git a/src/input/file_input_plugin.c b/src/input/file_input_plugin.c index a18de67b8..3646c656e 100644 --- a/src/input/file_input_plugin.c +++ b/src/input/file_input_plugin.c @@ -21,9 +21,9 @@ #include "input/file_input_plugin.h" #include "input_plugin.h" #include "fd_util.h" +#include "open.h" #include -#include #include #include #include @@ -54,7 +54,7 @@ input_file_open(const char *filename, GError **error_r) if (!g_path_is_absolute(filename)) return false; - fd = open_cloexec(filename, O_RDONLY, 0); + fd = open_cloexec(filename, O_RDONLY|O_BINARY, 0); if (fd < 0) { if (errno != ENOENT && errno != ENOTDIR) g_set_error(error_r, file_quark(), errno, -- cgit v1.2.3