[vlc-devel] [PATCH 1/3] OS/2: Include sys/types.h in vlc_common.h

Måns Rullgård mans at mansr.com
Fri Aug 24 16:15:52 CEST 2012


KO Myung-Hun <komh78 at gmail.com> writes:

> This fixes the following error.
>
> -----
> make.exe[1]: Entering directory `F:/lang/work/vlc/vlc.git/modules/demux/mkv'
>   CXX    libmkv_plugin_la-virtual_segment.lo
> In file included from ../../../include/vlc_common.h:938,
>                  from mkv.hpp:45,
>                  from demux.hpp:28,
>                  from virtual_segment.cpp:27:
> ../../../include/vlc_configuration.h:104: error: 'ssize_t' does not name a type
> ../../../include/vlc_configuration.h:106: error: 'ssize_t' does not name a type
> In file included from mkv.hpp:53,
>                  from demux.hpp:28,
>                  from virtual_segment.cpp:27:
> ../../../include/vlc_charset.h:153: warning: 'warn_unused_result' attribute ignored
> make.exe[1]: *** [libmkv_plugin_la-virtual_segment.lo] Error 1
> make.exe[1]: Leaving directory `F:/lang/work/vlc/vlc.git/modules/demux/mkv'
> make.exe: *** [all] Error 2
> -----
> ---
>  include/vlc_common.h |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/include/vlc_common.h b/include/vlc_common.h
> index 6514a94..a24dd1a 100644
> --- a/include/vlc_common.h
> +++ b/include/vlc_common.h
> @@ -151,6 +151,10 @@
>   #include <sys/syslimits.h>
>  #endif
>  
> +#ifdef __OS2__
> +#   include <sys/types.h>
> +#endif

This should be included unconditionally, or if ssize_t is used
conditionally, under the same condition.

-- 
Måns Rullgård
mans at mansr.com




More information about the vlc-devel mailing list