vlc | branch: master | KO Myung-Hun <[email protected]> | Wed Jun 10 12:27:25 2015 +0900| [f8f9b3f67b10fc8f56340ce9af31370f65348308] | committer: Rémi Denis-Courmont
os2: filesystem: set pipes to binary mode Signed-off-by: Rémi Denis-Courmont <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f8f9b3f67b10fc8f56340ce9af31370f65348308 --- src/os2/filesystem.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/os2/filesystem.c b/src/os2/filesystem.c index b9d03eb..0c92c5c 100644 --- a/src/os2/filesystem.c +++ b/src/os2/filesystem.c @@ -34,6 +34,7 @@ #include <sys/types.h> #include <unistd.h> +#include <io.h> #include <fcntl.h> #include <sys/stat.h> #include <dirent.h> @@ -337,6 +338,9 @@ int vlc_pipe (int fds[2]) if (pipe (fds)) return -1; + setmode (fds[0], O_BINARY); + setmode (fds[1], O_BINARY); + fcntl (fds[0], F_SETFD, FD_CLOEXEC); fcntl (fds[1], F_SETFD, FD_CLOEXEC); return 0; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
