]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Bionic c deprecates readdir_r too 1732/head
authortarsin <yuanqingxiang233@163.com>
Sat, 21 May 2022 12:44:30 +0000 (20:44 +0800)
committertarsin <yuanqingxiang233@163.com>
Sat, 21 May 2022 12:44:30 +0000 (20:44 +0800)
* See https://android.googlesource.com/platform/bionic/+/f19af37b5ee6cd5283683195d692fe3f713db2a5

libarchive/archive_platform.h

index 3426975de3497ee4f437bc07ca9e523497d3a700..1038932ace72f55549996b3651035c15711d6064 100644 (file)
 
 /*
  * glibc 2.24 deprecates readdir_r
+ * bionic c deprecates readdir_r too
  */
-#if defined(HAVE_READDIR_R) && (!defined(__GLIBC__) || !defined(__GLIBC_MINOR__) || __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 24))
+#if defined(HAVE_READDIR_R) && (!defined(__GLIBC__) || !defined(__GLIBC_MINOR__) || __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 24)) && (!defined(__ANDROID__))
 #define        USE_READDIR_R   1
 #else
 #undef USE_READDIR_R