Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa935c4 commit fb7c8aeCopy full SHA for fb7c8ae
1 file changed
Modules/posixmodule.c
@@ -32,6 +32,12 @@
32
#include "winreparse.h"
33
#endif
34
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
+
41
#ifdef __cplusplus
42
extern "C" {
43
@@ -5933,7 +5939,7 @@ os_openpty_impl(PyModuleDef *module)
5933
5939
if (_Py_set_inheritable(master_fd, 0, NULL) < 0)
5934
5940
goto posix_error;
5935
5941
5936
-#if !defined(__CYGWIN__) && !defined(HAVE_DEV_PTC)
5942
+#if !defined(__CYGWIN__) && !defined(__ANDROID__) && !defined(HAVE_DEV_PTC)
5937
5943
ioctl(slave_fd, I_PUSH, "ptem"); /* push ptem */
5938
5944
ioctl(slave_fd, I_PUSH, "ldterm"); /* push ldterm */
5945
#ifndef __hpux
0 commit comments