Skip to content

Commit cffd8ec

Browse files
committed
1 parent b1aa465 commit cffd8ec

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

libarchive/archive_platform.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,9 @@
195195

196196
/*
197197
* glibc 2.24 deprecates readdir_r
198+
* bionic c deprecates readdir_r too
198199
*/
199-
#if defined(HAVE_READDIR_R) && (!defined(__GLIBC__) || !defined(__GLIBC_MINOR__) || __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 24))
200+
#if defined(HAVE_READDIR_R) && (!defined(__GLIBC__) || !defined(__GLIBC_MINOR__) || __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 24)) && (!defined(__ANDROID__))
200201
#define USE_READDIR_R 1
201202
#else
202203
#undef USE_READDIR_R

0 commit comments

Comments
 (0)