[Buildroot] [PATCH 2/2] package/mjpg-streamer: Fix musl build

Bernd Kuhls bernd.kuhls at t-online.de
Sat Jan 23 15:03:28 UTC 2016


Fixes
http://autobuild.buildroot.net/results/74c/74c6006c4d7a97fa69c6feee204631861daffea9/

Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
---
 package/mjpg-streamer/0001-musl_compatibility.patch | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 package/mjpg-streamer/0001-musl_compatibility.patch

diff --git a/package/mjpg-streamer/0001-musl_compatibility.patch b/package/mjpg-streamer/0001-musl_compatibility.patch
new file mode 100644
index 0000000..faebd58
--- /dev/null
+++ b/package/mjpg-streamer/0001-musl_compatibility.patch
@@ -0,0 +1,20 @@
+Fix musl build
+
+Patch downloaded from
+https://github.com/openwrt/packages/blob/master/multimedia/mjpg-streamer/patches/005-musl_compatibility.patch
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
+
+--- a/mjpg_streamer.h
++++ b/mjpg_streamer.h
+@@ -29,6 +29,10 @@
+ #define MAX_OUTPUT_PLUGINS 10
+ #define MAX_PLUGIN_ARGUMENTS 32
+ 
++#define __NEED_pthread_t
++#define __NEED_pthread_mutex_t
++#define __NEED_pthread_cond_t
++
+ #include <linux/types.h>          /* for videodev2.h */
+ #include <linux/videodev2.h>
+ 
-- 
2.7.0.rc3



More information about the buildroot mailing list