Browse Source

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.

Eric Andersen 21 years ago
parent
commit
2b8a8dc714
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libc/unistd/usershell.c

+ 2 - 0
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;