summaryrefslogtreecommitdiff
path: root/libc/unistd/usershell.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-21 21:41:30 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-21 21:41:30 +0000
commit2b8a8dc7144328f301390f13fa560d29a410e34f (patch)
tree28adafcdf72cb8fb58bd24b9584a1cd45fbbb9dd /libc/unistd/usershell.c
parent3ede30ed8c64effbfa8d17a4efa28c0a676435b0 (diff)
Oops. As Pavel Roskin notes, I forgot to conditionally include
the __fsetlocking call in libc/unistd/usershell.c. It should be wrapped and only included if __UCLIBC_HAS_THREADS__ is defined.
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;