4 add_dir_to_list(self.compiler.include_dirs,
5 sysconfig.get_config_var("INCLUDEDIR"))
7 - system_lib_dirs = ['/lib64', '/usr/lib64', '/lib', '/usr/lib']
9 + system_lib_dirs = ['/usr/lib', macosx_sdk_root()+'/usr/lib']
11 + system_lib_dirs = ['/lib64', '/usr/lib64', '/lib', '/usr/lib']
12 system_include_dirs = ['/usr/include']
13 # lib_dirs and inc_dirs are used to search for files;
14 # if a file is found in one of those directories, it can
15 --- Modules/_posixsubprocess.c
16 +++ Modules/_posixsubprocess.c
18 # define SYS_getdents64 __NR_getdents64
23 #if defined(__sun) && defined(__SVR4)
24 /* readdir64 is used to work around Solaris 9 bug 6395699. */
25 # define readdir readdir64
29 local_max_fd = sysconf(_SC_OPEN_MAX);
30 - if (local_max_fd == -1)
31 + if (local_max_fd == -1 || local_max_fd == LONG_MAX)
33 local_max_fd = 256; /* Matches legacy Lib/subprocess.py behavior. */