Skip to content

Commit

Permalink
bpo-46315: Use fopencookie only on Emscripten 3.x and newer (GH-32266)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran authored Apr 2, 2022
1 parent c93a0ac commit 3df0e63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Parser/tokenizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3df0e63

Please sign in to comment.