Skip to content

Commit e0b29da

Browse files
committed
add a fix for freopen corner cases (pg)
1 parent c19c272 commit e0b29da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/emsdk-fetch.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ then
2121
#git checkout 91f8563a9d1a4a0ec03bbb2be23485367d85a091
2222
./emsdk install ${EMFLAVOUR:-latest}
2323
./emsdk activate ${EMFLAVOUR:-latest}
24+
25+
2426
pushd upstream/emscripten
27+
echo "FIXME: applying stdio* are not const"
28+
sed -i 's|extern FILE \*const|extern FILE \*|g' cache/sysroot/include/stdio.h
29+
2530
echo "FIXME: Applying https://github.com/emscripten-core/emscripten/pull/20281 dylink.js : handle ** argument case"
2631
wget https://patch-diff.githubusercontent.com/raw/emscripten-core/emscripten/pull/20281.diff
2732
patch -p1 < 20281.diff

0 commit comments

Comments
 (0)