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 431f9a2 commit 5e5c605Copy full SHA for 5e5c605
stdlib/public/stubs/Stubs.cpp
@@ -503,6 +503,8 @@ const char *swift::_swift_stdlib_strtof_clocale(
503
void swift::_swift_stdlib_flockfile_stdout() {
504
#if defined(_WIN32)
505
_lock_file(stdout);
506
+#elif defined(__wasi__)
507
+ // WebAssembly/WASI doesn't support file locking yet
508
#else
509
flockfile(stdout);
510
#endif
@@ -511,6 +513,8 @@ void swift::_swift_stdlib_flockfile_stdout() {
511
513
void swift::_swift_stdlib_funlockfile_stdout() {
512
514
515
_unlock_file(stdout);
516
517
518
519
funlockfile(stdout);
520
0 commit comments