We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd1c4fa commit e5a5fb2Copy full SHA for e5a5fb2
stdlib/public/stubs/Stubs.cpp
@@ -488,6 +488,8 @@ const char *swift::_swift_stdlib_strtof_clocale(
488
void swift::_swift_stdlib_flockfile_stdout() {
489
#if defined(_WIN32)
490
_lock_file(stdout);
491
+#elif defined(__wasi__)
492
+ // WebAssembly/WASI doesn't support file locking yet
493
#else
494
flockfile(stdout);
495
#endif
@@ -496,6 +498,8 @@ void swift::_swift_stdlib_flockfile_stdout() {
496
498
void swift::_swift_stdlib_funlockfile_stdout() {
497
499
500
_unlock_file(stdout);
501
502
503
504
funlockfile(stdout);
505
0 commit comments