termux-packages/packages/mpv/strnlen.h.patch
Tom Yan d91df72f7f mpv: build with --disable-android
Since 0.28 the android build option is used for a few features that
are not useful in Termux (as we don't do video output and JNI isn't
available)

In 0.27 the option is only used to enable some wrapping of strnlen,
as it was broken (but also fixed) long time ago in Android.

Therefore instead of the extra patching that do us no good, let us
simply build with --disable-android and disable the wrapping.

Also use vid=no instead of vo=null in mpv.conf, as the latter does
not prevent video decoding.
2018-06-26 13:08:54 +02:00

17 lines
416 B
Diff

diff --git a/osdep/strnlen.h b/osdep/strnlen.h
index 0a971d0ab0..9a8b2a104d 100644
--- a/osdep/strnlen.h
+++ b/osdep/strnlen.h
@@ -19,11 +19,4 @@
#ifndef MP_OSDEP_STRNLEN
#define MP_OSDEP_STRNLEN
-
-#ifdef __ANDROID__
-// strnlen is broken on current android ndk, see https://code.google.com/p/android/issues/detail?id=74741
-#include "osdep/android/strnlen.h"
-#define strnlen freebsd_strnlen
-#endif
-
#endif