mjpg-streamer: Fix musl compatibility
authorTed Hess <thess@kitschensync.net>
Thu, 18 Jun 2015 12:35:17 +0000 (08:35 -0400)
committerTed Hess <thess@kitschensync.net>
Thu, 18 Jun 2015 12:35:28 +0000 (08:35 -0400)
Signed-off-by: Ted Hess <thess@kitschensync.net>
multimedia/mjpg-streamer/patches/005-musl_compatibility.patch [new file with mode: 0644]

diff --git a/multimedia/mjpg-streamer/patches/005-musl_compatibility.patch b/multimedia/mjpg-streamer/patches/005-musl_compatibility.patch
new file mode 100644 (file)
index 0000000..c758eb9
--- /dev/null
@@ -0,0 +1,13 @@
+--- 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>