From: Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) Date: Sat, 28 May 2016 21:06:41 +0000 (+0000) Subject: Fix issue27146 - add stdio.h include to posixmodule.c for ctermid(). X-Git-Tag: v3.6.0a2~209^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46833e73af10de91f6e6fb5e3b39af56476aa39c;p=python Fix issue27146 - add stdio.h include to posixmodule.c for ctermid(). --- 46833e73af10de91f6e6fb5e3b39af56476aa39c diff --cc Modules/posixmodule.c index 92478433f8,e5f58ab06b..ded6d716eb --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@@ -32,12 -32,8 +32,14 @@@ #include "winreparse.h" #endif +/* On android API level 21, 'AT_EACCESS' is not declared although + * HAVE_FACCESSAT is defined. */ +#ifdef __ANDROID__ +#undef HAVE_FACCESSAT +#endif + + #include /* needed for ctermid() */ + #ifdef __cplusplus extern "C" { #endif