Explorar el Código

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

Eric Andersen hace 22 años
padre
commit
3e2a8b618a
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      libc/misc/ttyent/getttyent.c

+ 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);