Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb7c8ae

Browse files
author
Stefan Krah
committed
Issue #26863: HAVE_FACCESSAT should (currently) not be defined on Android.
1 parent fa935c4 commit fb7c8ae

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Modules/posixmodule.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@
3232
#include "winreparse.h"
3333
#endif
3434

35+
/* On android API level 21, 'AT_EACCESS' is not declared although
36+
* HAVE_FACCESSAT is defined. */
37+
#ifdef __ANDROID__
38+
#undef HAVE_FACCESSAT
39+
#endif
40+
3541
#ifdef __cplusplus
3642
extern "C" {
3743
#endif
@@ -5933,7 +5939,7 @@ os_openpty_impl(PyModuleDef *module)
59335939
if (_Py_set_inheritable(master_fd, 0, NULL) < 0)
59345940
goto posix_error;
59355941

5936-
#if !defined(__CYGWIN__) && !defined(HAVE_DEV_PTC)
5942+
#if !defined(__CYGWIN__) && !defined(__ANDROID__) && !defined(HAVE_DEV_PTC)
59375943
ioctl(slave_fd, I_PUSH, "ptem"); /* push ptem */
59385944
ioctl(slave_fd, I_PUSH, "ldterm"); /* push ldterm */
59395945
#ifndef __hpux

0 commit comments

Comments
 (0)