Эх сурвалжийг харах

Patch from Steven J. Hill to disable __fsetlocking when
threads are disabled. Bug is my fault. oops.
-Erik

Eric Andersen 24 жил өмнө
parent
commit
3e2a8b618a

+ 2 - 0
libc/misc/ttyent/getttyent.c

@@ -179,7 +179,9 @@ int setttyent(void)
 	return (1);
     } else if ((tf = fopen(_PATH_TTYS, "r"))) {
 	/* We do the locking ourselves.  */
+#ifdef __UCLIBC_HAS_THREADS__
 	__fsetlocking (tf, FSETLOCKING_BYCALLER);
+#endif
 	return (1);
     }
     return (0);