summaryrefslogtreecommitdiff
path: root/libc/unistd/usershell.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/unistd/usershell.c')
-rw-r--r--libc/unistd/usershell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/unistd/usershell.c b/libc/unistd/usershell.c
index 13351de9f..b1a932918 100644
--- a/libc/unistd/usershell.c
+++ b/libc/unistd/usershell.c
@@ -109,7 +109,9 @@ static char ** initshells(void)
goto cleanup;
}
/* No threads using this stream. */
+#ifdef __UCLIBC_HAS_THREADS__
__fsetlocking (fp, FSETLOCKING_BYCALLER);
+#endif
sp = shells;
cp = strings;
flen = statb.st_size;