[vlc-devel] [PATCH 3/3] OS/2: Include unistd.h in modules/access_output/files.c

KO Myung-Hun komh78 at gmail.com
Fri Aug 24 15:39:59 CEST 2012


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
-----
---
 modules/access_output/file.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

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
 
-- 
1.7.3.2




More information about the vlc-devel mailing list