mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Issue #26863: HAVE_FACCESSAT should (currently) not be defined on Android.
This commit is contained in:
		
							parent
							
								
									fa935c4727
								
							
						
					
					
						commit
						fb7c8ae4e7
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
					@ -32,6 +32,12 @@
 | 
				
			||||||
#include "winreparse.h"
 | 
					#include "winreparse.h"
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* On android API level 21, 'AT_EACCESS' is not declared although
 | 
				
			||||||
 | 
					 * HAVE_FACCESSAT is defined. */
 | 
				
			||||||
 | 
					#ifdef __ANDROID__
 | 
				
			||||||
 | 
					#undef HAVE_FACCESSAT
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef __cplusplus
 | 
					#ifdef __cplusplus
 | 
				
			||||||
extern "C" {
 | 
					extern "C" {
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					@ -5933,7 +5939,7 @@ os_openpty_impl(PyModuleDef *module)
 | 
				
			||||||
    if (_Py_set_inheritable(master_fd, 0, NULL) < 0)
 | 
					    if (_Py_set_inheritable(master_fd, 0, NULL) < 0)
 | 
				
			||||||
        goto posix_error;
 | 
					        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, "ptem"); /* push ptem */
 | 
				
			||||||
    ioctl(slave_fd, I_PUSH, "ldterm"); /* push ldterm */
 | 
					    ioctl(slave_fd, I_PUSH, "ldterm"); /* push ldterm */
 | 
				
			||||||
#ifndef __hpux
 | 
					#ifndef __hpux
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue