diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index e8c15a9473..22e32d8a74 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1927,8 +1927,10 @@ _pystat_fromstructstat(STRUCT_STAT *st) return NULL; PyStructSequence_SET_ITEM(v, 0, PyLong_FromLong((long)st->st_mode)); -#if defined(HAVE_LARGEFILE_SUPPORT) || defined(MS_WINDOWS) +#if defined(HAVE_LARGEFILE_SUPPORT) || defined(MS_WINDOWS) || defined(__ANDROID__) +# ifndef __ANDROID__ Py_BUILD_ASSERT(sizeof(unsigned long long) >= sizeof(st->st_ino)); +# endif PyStructSequence_SET_ITEM(v, 1, PyLong_FromUnsignedLongLong(st->st_ino)); #else