Commit 3d5dcf8b authored by KO Myung-Hun's avatar KO Myung-Hun Committed by Rémi Denis-Courmont

Include missing unistd.h and time.h for OS/2

Modified-by: default avatarRémi Denis-Courmont <remi@remlab.net>
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent dbc8ad47
...@@ -59,8 +59,6 @@ ...@@ -59,8 +59,6 @@
# include <ctype.h> # include <ctype.h>
# include <shlwapi.h> # include <shlwapi.h>
# include <vlc_charset.h> # include <vlc_charset.h>
#elif defined( __OS2__ )
# include <ctype.h>
#else #else
# include <unistd.h> # include <unistd.h>
#endif #endif
......
...@@ -33,6 +33,9 @@ ...@@ -33,6 +33,9 @@
#include <time.h> #include <time.h>
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_plugin.h> #include <vlc_plugin.h>
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#endif #endif
#include <math.h> #include <math.h>
#include <unistd.h>
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_plugin.h> #include <vlc_plugin.h>
......
...@@ -36,6 +36,8 @@ ...@@ -36,6 +36,8 @@
# include "config.h" # include "config.h"
#endif #endif
#include <time.h>
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_plugin.h> #include <vlc_plugin.h>
#include <vlc_interface.h> #include <vlc_interface.h>
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
#include <time.h>
#ifndef WIN32 #ifndef WIN32
# include <locale.h> # include <locale.h>
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include <ctype.h> #include <ctype.h>
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>
#include <unistd.h>
#include "dynamicoverlay.h" #include "dynamicoverlay.h"
......
...@@ -35,6 +35,9 @@ ...@@ -35,6 +35,9 @@
#elif defined(HAVE_USELOCALE) #elif defined(HAVE_USELOCALE)
#include <locale.h> #include <locale.h>
#endif #endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <vlc_common.h> #include <vlc_common.h>
#include "../libvlc.h" #include "../libvlc.h"
......
...@@ -37,6 +37,9 @@ ...@@ -37,6 +37,9 @@
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> # include <sys/stat.h>
#endif #endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_fs.h> #include <vlc_fs.h>
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
# include "config.h" # include "config.h"
#endif #endif
#include <assert.h> #include <assert.h>
#include <time.h>
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_url.h> #include <vlc_url.h>
......
...@@ -38,6 +38,10 @@ ...@@ -38,6 +38,10 @@
#endif #endif
#include <assert.h> #include <assert.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_modules.h> #include <vlc_modules.h>
#include <vlc_interface.h> #include <vlc_interface.h>
......
...@@ -32,6 +32,10 @@ ...@@ -32,6 +32,10 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include "vlc_block.h" #include "vlc_block.h"
/** /**
......
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
#ifdef __OS2__ #ifdef __OS2__
# include <sys/socket.h> # include <sys/socket.h>
# include <netinet/in.h> # include <netinet/in.h>
# include <unistd.h> // close(), write()
#elif defined(WIN32) #elif defined(WIN32)
# include <io.h> # include <io.h>
# include <winsock2.h> # include <winsock2.h>
......
...@@ -38,6 +38,9 @@ ...@@ -38,6 +38,9 @@
#include <errno.h> #include <errno.h>
#include <sys/types.h> #include <sys/types.h>
#include <fcntl.h> #include <fcntl.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
/** /**
* Opens a FILE pointer. * Opens a FILE pointer.
......
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
# include "config.h" # include "config.h"
#endif #endif
#include <time.h>
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_vout.h> #include <vlc_vout.h>
#include <vlc_vout_osd.h> #include <vlc_vout_osd.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment