[vlc-commits] OS/2: Include unistd.h in modules/access_output/files.c
KO Myung-Hun
git at videolan.org
Fri Aug 24 17:40:49 CEST 2012
vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Fri Aug 24 22:39:59 2012 +0900| [5a66b9fc5378bc1d7c4321bfe56a1d0bf4560001] | committer: Rémi Denis-Courmont
OS/2: Include unistd.h in modules/access_output/files.c
Thie fixes the following error.
-----
make.exe[1]: Entering directory `F:/lang/work/vlc/vlc.git/modules/access_output'
CC libaccess_output_file_plugin_la-file.lo
file.c: In function 'Open':
file.c:142: error: 'STDOUT_FILENO' undeclared (first use in this function)
file.c:142: error: (Each undeclared identifier is reported only once
file.c:142: error: for each function it appears in.)
make.exe[1]: *** [libaccess_output_file_plugin_la-file.lo] Error 1
make.exe[1]: Leaving directory `F:/lang/work/vlc/vlc.git/modules/access_output'
make.exe: *** [all] Error 2
-----
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5a66b9fc5378bc1d7c4321bfe56a1d0bf4560001
---
modules/access_output/file.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/access_output/file.c b/modules/access_output/file.c
index 9774685..cfa9686 100644
--- a/modules/access_output/file.c
+++ b/modules/access_output/file.c
@@ -44,7 +44,9 @@
#if defined( WIN32 ) || defined( __OS2__ )
# include <io.h>
-#else
+#endif
+
+#ifndef WIN32
# include <unistd.h>
#endif
More information about the vlc-commits
mailing list