[vlc-devel] [PATCH 1/3] Include 'unistd.h' for 'ssize_t' on OS/2

KO Myung-Hun komh78 at gmail.com
Thu Feb 2 06:03:07 CET 2012


This fixes the following error,
-----
In file included from ../../../include/vlc_stream.h:27,
                 from ../../../include/vlc_demux.h:33,
                 from mkv.hpp:55,
                 from demux.hpp:28,
                 from virtual_segment.cpp:27:
../../../include/vlc_block.h:138: error: 'ssize_t' has not been declared
-----
---
 modules/demux/mkv/virtual_segment.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/demux/mkv/virtual_segment.cpp b/modules/demux/mkv/virtual_segment.cpp
index 0f667f2..3763566 100644
--- a/modules/demux/mkv/virtual_segment.cpp
+++ b/modules/demux/mkv/virtual_segment.cpp
@@ -24,6 +24,8 @@
  *****************************************************************************/
 #include <vector>
 
+#include <unistd.h>     /* for ssize_t, vlc_block.h requires this */
+
 #include "demux.hpp"
 
 /* FIXME move this */
-- 
1.7.3.2




More information about the vlc-devel mailing list