diff options
author | Stefan Krah <skrah@bytereef.org> | 2016-04-26 15:04:18 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2016-04-26 15:04:18 (GMT) |
commit | fb7c8ae4e7762d5b862cace2f68b48ff42e39cb0 (patch) | |
tree | 157296db580f2936a9a1fbe5bbe492dabe1a9e8c /Modules/posixmodule.c | |
parent | fa935c4727da6e34e42643fe54fe291e87f00ace (diff) | |
download | cpython-fb7c8ae4e7762d5b862cace2f68b48ff42e39cb0.zip cpython-fb7c8ae4e7762d5b862cace2f68b48ff42e39cb0.tar.gz cpython-fb7c8ae4e7762d5b862cace2f68b48ff42e39cb0.tar.bz2 |
Issue #26863: HAVE_FACCESSAT should (currently) not be defined on Android.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index a87bbbd..03ad07d 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -32,6 +32,12 @@ #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 + #ifdef __cplusplus extern "C" { #endif @@ -5933,7 +5939,7 @@ os_openpty_impl(PyModuleDef *module) if (_Py_set_inheritable(master_fd, 0, NULL) < 0) goto posix_error; -#if !defined(__CYGWIN__) && !defined(HAVE_DEV_PTC) +#if !defined(__CYGWIN__) && !defined(__ANDROID__) && !defined(HAVE_DEV_PTC) ioctl(slave_fd, I_PUSH, "ptem"); /* push ptem */ ioctl(slave_fd, I_PUSH, "ldterm"); /* push ldterm */ #ifndef __hpux |