0004-Fix-build-error-using-uClibc-by-adding-sys-types.h.patch 1.4 KB

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