File 0003-Hack-backwards-compatibility-for-TurboJPEG-2.0.0.patch of Package droidcam
Index: droidcam-1.9.0/src/decoder.c
===================================================================
--- droidcam-1.9.0.orig/src/decoder.c
+++ droidcam-1.9.0/src/decoder.c
@@ -31,6 +31,15 @@ extern "C"
}
#endif
+#include "jconfig.h"
+#if LIBJPEG_TURBO_VERSION_NUMBER < 2000000
+#warning LIBJPEG_TURBO_VERSION too old for thread safe error handling
+#define tjGetErrorCode(handle) 0
+#define tjGetErrorStr2(handle) tjGetErrorStr()
+
+#define TJXOPT_COPYNONE 0
+#endif
+
struct spx_decoder_s {
snd_pcm_t *snd_handle;
void *state;