]> granicus.if.org Git - python/commitdiff
Issue #26863: HAVE_FACCESSAT should (currently) not be defined on Android.
authorStefan Krah <skrah@bytereef.org>
Tue, 26 Apr 2016 15:04:18 +0000 (17:04 +0200)
committerStefan Krah <skrah@bytereef.org>
Tue, 26 Apr 2016 15:04:18 +0000 (17:04 +0200)
Modules/posixmodule.c

index a87bbbd6b400c290eb7baf662ffe87f35e0340fa..03ad07d813e97222591348e117596c2cfb3d4514 100644 (file)
 #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