From 7f362ae0220dbf0a69c53bdd405181d9d44581af Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sat, 2 Apr 2022 22:22:02 +0200 Subject: [PATCH] bpo-46315: Use fopencookie only on Emscripten 3.x and newer --- Parser/tokenizer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 13116d052ea593..db84e2e92e1677 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -2072,7 +2072,7 @@ _PyTokenizer_Get(struct tok_state *tok, return result; } -#if defined(__wasi__) || defined(__EMSCRIPTEN__) +#if defined(__wasi__) || (defined(__EMSCRIPTEN__) && (__EMSCRIPTEN_major__ >= 3)) // fdopen() with borrowed fd. WASI does not provide dup() and Emscripten's // dup() emulation with open() is slow. typedef union { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy