[vlc-commits] access_output_file: fix compilation on OS/2

KO Myung-Hun git at videolan.org
Fri Jun 5 15:44:49 CEST 2015


vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Fri May 29 12:20:25 2015 +0900| [5520cd1f371b6b6bc033461a5fd5e93251b0dafa] | committer: Jean-Baptiste Kempf

access_output_file: fix compilation on OS/2

-----
  CC       access_output/file.lo
access_output/file.c: In function 'Open':
access_output/file.c:288:9: error: implicit declaration of function 'setmode' [-Werror=implicit-function-declaration]
         setmode (STDOUT_FILENO, O_BINARY);
         ^
cc1.exe: some warnings being treated as errors
make.exe[4]: *** [access_output/file.lo] Error 1
-----

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5520cd1f371b6b6bc033461a5fd5e93251b0dafa
---

 modules/access_output/file.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/access_output/file.c b/modules/access_output/file.c
index 1705dc5..2e61e32 100644
--- a/modules/access_output/file.c
+++ b/modules/access_output/file.c
@@ -37,6 +37,9 @@
 #include <errno.h>
 #include <sys/stat.h>
 #include <unistd.h>
+#ifdef __OS2__
+#   include <io.h>      /* setmode() */
+#endif
 
 #include <vlc_common.h>
 #include <vlc_plugin.h>



More information about the vlc-commits mailing list