@@ -29037,7 +29037,7 @@ diff -Nru orig/Modules/mathmodule.c modified/Modules/mathmodule.c
29037
29037
r = hypot(x, y);
29038
29038
diff -Nru orig/Modules/posixmodule.c modified/Modules/posixmodule.c
29039
29039
--- orig/Modules/posixmodule.c 2015-12-07 09:39:10.000000000 +0800
29040
- +++ modified/Modules/posixmodule.c 2016-02-17 09:05:04 .000000000 +0800
29040
+ +++ modified/Modules/posixmodule.c 2016-02-17 14:14:22 .000000000 +0800
29041
29041
@@ -20,6 +20,8 @@
29042
29042
# pragma weak statvfs
29043
29043
# pragma weak fstatvfs
@@ -29047,15 +29047,30 @@ diff -Nru orig/Modules/posixmodule.c modified/Modules/posixmodule.c
29047
29047
#endif /* __APPLE__ */
29048
29048
29049
29049
#define PY_SSIZE_T_CLEAN
29050
- @@ -175,7 +177,6 @@
29050
+ @@ -175,6 +177,22 @@
29051
29051
#endif /* _MSC_VER */
29052
29052
#endif /* ! __WATCOMC__ || __QNX__ */
29053
29053
29054
- -
29054
+ +// tvOS and watchOS don't provide a number of important POSIX functions.
29055
+ +#if defined(__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__) || defined(__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__)
29056
+ +# undef HAVE_EXECV
29057
+ +# undef HAVE_FORK
29058
+ +# undef HAVE_FORK1
29059
+ +# undef HAVE_FORKPTY
29060
+ +# undef HAVE_GETGROUPS
29061
+ +# undef HAVE_SCHED_H
29062
+ +# undef HAVE_SENDFILE
29063
+ +# undef HAVE_SETPRIORITY
29064
+ +# undef HAVE_SPAWNV
29065
+ +# undef HAVE_WAIT
29066
+ +# undef HAVE_WAIT3
29067
+ +# undef HAVE_WAIT4
29068
+ +# undef HAVE_WAITPID
29069
+ +#endif /* TVOS || WATCHOS */
29070
+
29055
29071
/*[clinic input]
29056
29072
# one of the few times we lie about this name!
29057
- module os
29058
- @@ -1127,7 +1128,9 @@
29073
+ @@ -1127,7 +1145,9 @@
29059
29074
#include <crt_externs.h>
29060
29075
static char **environ;
29061
29076
#elif !defined(_MSC_VER) && ( !defined(__WATCOMC__) || defined(__QNX__) )
@@ -29065,7 +29080,7 @@ diff -Nru orig/Modules/posixmodule.c modified/Modules/posixmodule.c
29065
29080
#endif /* !_MSC_VER */
29066
29081
29067
29082
static PyObject *
29068
- @@ -1178,7 +1181 ,7 @@
29083
+ @@ -1178,7 +1198 ,7 @@
29069
29084
Py_DECREF(k);
29070
29085
Py_DECREF(v);
29071
29086
}
@@ -29074,7 +29089,7 @@ diff -Nru orig/Modules/posixmodule.c modified/Modules/posixmodule.c
29074
29089
if (environ == NULL)
29075
29090
return d;
29076
29091
/* This part ignores errors */
29077
- @@ -4285,7 +4288 ,12 @@
29092
+ @@ -4285,7 +4305 ,12 @@
29078
29093
long result;
29079
29094
char *bytes = PyBytes_AsString(command);
29080
29095
Py_BEGIN_ALLOW_THREADS
@@ -29170,7 +29185,7 @@ diff -Nru orig/Objects/bytesobject.c modified/Objects/bytesobject.c
29170
29185
n++;
29171
29186
diff -Nru orig/Python/importlib_external.h modified/Python/importlib_external.h
29172
29187
--- orig/Python/importlib_external.h 2015-12-07 09:39:11.000000000 +0800
29173
- +++ modified/Python/importlib_external.h 2016-02-17 10:08:14 .000000000 +0800
29188
+ +++ modified/Python/importlib_external.h 2016-02-17 12:30:41 .000000000 +0800
29174
29189
@@ -2,52 +2,52 @@
29175
29190
const unsigned char _Py_M__importlib_external[] = {
29176
29191
99,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,
0 commit comments