Procházet zdrojové kódy

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

Eric Andersen před 23 roky
rodič
revize
3e2a8b618a
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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);