From 2b8a8dc7144328f301390f13fa560d29a410e34f Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 21 Nov 2002 21:41:30 +0000 Subject: 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. --- libc/unistd/usershell.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3