]> git.sesse.net Git - vlc/commitdiff
OS/2: Include sys/types.h in vlc_configuration.h
authorKO Myung-Hun <komh@chollian.net>
Fri, 24 Aug 2012 13:07:00 +0000 (22:07 +0900)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 26 Aug 2012 16:58:35 +0000 (18:58 +0200)
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
-----

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
include/vlc_configuration.h

index f538757ea47a2adb50641dcf05b1952443a0b8a2..02a8486b96b2e5010af1a02d466a1fb7e849304b 100644 (file)
@@ -32,6 +32,8 @@
  * It includes functions allowing to declare, get or set configuration options.
  */
 
+#include <sys/types.h>  /* for ssize_t */
+
 # ifdef __cplusplus
 extern "C" {
 # endif