From a211802b4428c86f227240dffc5e0031fd5b2e03 Mon Sep 17 00:00:00 2001 From: Dexter Chua Date: Sun, 3 Jan 2021 16:48:16 +0800 Subject: [PATCH] Slightly simplify cpython patch (#1023) --- cpython/patches/0001-disable-set_inheritable.patch | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/cpython/patches/0001-disable-set_inheritable.patch b/cpython/patches/0001-disable-set_inheritable.patch index 56ef5ab62..e15086b1d 100644 --- a/cpython/patches/0001-disable-set_inheritable.patch +++ b/cpython/patches/0001-disable-set_inheritable.patch @@ -14,18 +14,7 @@ index e79e732d1f..864dc78a57 100644 { +#ifdef EMSCRIPTEN + return 0; -+#else ++#endif #ifdef MS_WINDOWS HANDLE handle; DWORD flags; -@@ -1214,6 +1217,7 @@ set_inheritable(int fd, int inheritable, int raise, int *atomic_flag_works) - } - return 0; - #endif -+#endif - } - - /* Make the file descriptor non-inheritable. --- -2.25.1 -