Quellcode durchsuchen

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 vor 21 Jahren
Ursprung
Commit
2b8a8dc714
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  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;