[vlc-devel] [PATCH 3/3] os2: include unistd.h in vlc_common.h

KO Myung-Hun komh78 at gmail.com
Thu Nov 13 09:07:01 CET 2014


Unlike other OSes, OS/2 does not include unistd.h. Because of this,
some compilation errors occur only on OS/2, repeatedly. So including
unistd.h in vlc_common.h is better than repeating fixes in every
sources.
---
 include/vlc_common.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/vlc_common.h b/include/vlc_common.h
index 367c091..8f902f4 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -425,6 +425,8 @@ typedef enum
 #   define INCL_PM
 #   include <os2safe.h>
 #   include <os2.h>
+
+#   include <unistd.h>
 #endif
 
 #include "vlc_mtime.h"
-- 
1.8.5.2




More information about the vlc-devel mailing list