[Android] [PATCH 09/11] Fix build against shmdt

Victorien Le Couviour--Tuffet victorien.lecouviour.tuffet at gmail.com
Mon Oct 8 12:06:51 CEST 2018


---
 compile-libvlc.sh | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/compile-libvlc.sh b/compile-libvlc.sh
index 5c494697c..541306bbb 100755
--- a/compile-libvlc.sh
+++ b/compile-libvlc.sh
@@ -534,11 +534,13 @@ if [ "${CHROME_OS}" = "1" ];then
     export ac_cv_func_pipe2=no
 fi
 
-if [ ${ANDROID_API} = "21" ] ; then
-    # android-21 has empty sys/shm.h headers that triggers shm detection but it
+if [ ${ANDROID_API} -lt "26" ]; then
+    # android APIs < 26 have empty sys/shm.h headers that triggers shm detection but it
     # doesn't have any shm functions and/or symbols. */
     export ac_cv_header_sys_shm_h=no
-else
+fi
+
+if [ ${ANDROID_API} -lt "21" ] ; then
     # force uselocale using libandroid_support since it's present in libc++
     export ac_cv_func_uselocale=yes
 
-- 
2.19.1



More information about the Android mailing list