Explorar o código

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 %!s(int64=24) %!d(string=hai) anos
pai
achega
2b8a8dc714
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;