[vlc-devel] [PATCH] Fix build error using uClibc by adding sys/types.h
Bernd Kuhls
bernd.kuhls at t-online.de
Sat Apr 2 16:52:23 CEST 2016
Fixes
CC core.lo
In file included from libvlc_internal.h:35:0,
from core.c:28:
../include/vlc/libvlc_media.h:313:18: error: expected declaration specifiers or '...' before '*' token
typedef ssize_t (*libvlc_media_read_cb)(void *opaque, unsigned char *buf,
^
../include/vlc/libvlc_media.h:423:36: error: unknown type name 'libvlc_media_read_cb'
libvlc_media_read_cb read_cb,
^
Bug was reported to trac:
https://trac.videolan.org/vlc/ticket/16768
This patch was suggested by courmisch in the trac ticket.
Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
---
include/vlc/libvlc_media.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/vlc/libvlc_media.h b/include/vlc/libvlc_media.h
index 3e7c637..7caa65e 100644
--- a/include/vlc/libvlc_media.h
+++ b/include/vlc/libvlc_media.h
@@ -26,6 +26,8 @@
#ifndef VLC_LIBVLC_MEDIA_H
#define VLC_LIBVLC_MEDIA_H 1
+#include <sys/types.h> /* for ssize_t */
+
# ifdef __cplusplus
extern "C" {
# endif
--
2.8.0.rc3
More information about the vlc-devel
mailing list