1From bbb15b9cbf9353423619f2c40abdf95d861e66ba Mon Sep 17 00:00:00 2001 2From: Bernd Kuhls <bernd.kuhls@t-online.de> 3Date: Sat, 2 Apr 2016 16:49:54 +0200 4Subject: [PATCH] Fix build error using uClibc by adding sys/types.h 5 6Fixes 7 8 CC core.lo 9In file included from libvlc_internal.h:35:0, 10 from core.c:28: 11../include/vlc/libvlc_media.h:313:18: error: expected declaration specifiers or '...' before '*' token 12 typedef ssize_t (*libvlc_media_read_cb)(void *opaque, unsigned char *buf, 13 ^ 14../include/vlc/libvlc_media.h:423:36: error: unknown type name 'libvlc_media_read_cb' 15 libvlc_media_read_cb read_cb, 16 ^ 17Bug was reported to trac: 18https://trac.videolan.org/vlc/ticket/16768 19 20This patch was suggested by courmisch in the trac ticket. 21 22Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> 23[Patch sent upstream: 24 https://mailman.videolan.org/pipermail/vlc-devel/2016-April/106952.html] 25--- 26 include/vlc/libvlc_media.h | 2 ++ 27 1 file changed, 2 insertions(+) 28 29diff --git a/include/vlc/libvlc_media.h b/include/vlc/libvlc_media.h 30index 383f366b69..1cbf00c3e3 100644 31--- a/include/vlc/libvlc_media.h 32+++ b/include/vlc/libvlc_media.h 33@@ -26,6 +26,8 @@ 34 #ifndef VLC_LIBVLC_MEDIA_H 35 #define VLC_LIBVLC_MEDIA_H 1 36 37+#include <sys/types.h> /* for ssize_t */ 38+ 39 # ifdef __cplusplus 40 extern "C" { 41 # endif 42-- 432.14.4 44 45