Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
2b8a8dc714
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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;