]> granicus.if.org Git - python/commitdiff
Fix issue27146 - add stdio.h include to posixmodule.c for ctermid().
authorGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>
Sat, 28 May 2016 21:06:41 +0000 (21:06 +0000)
committerGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>
Sat, 28 May 2016 21:06:41 +0000 (21:06 +0000)
1  2 
Modules/posixmodule.c

index 92478433f83891822e38bf114955d32bc105321e,e5f58ab06b4bfcc448b540c7cffe82ce5b01bb1c..ded6d716eb2b76c3cc44bc784c2a8b890db715d2
  #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 <stdio.h>  /* needed for ctermid() */
  #ifdef __cplusplus
  extern "C" {
  #endif