Browse Source

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

Eric Andersen 22 years ago
parent
commit
3e2a8b618a
1 changed files with 2 additions and 0 deletions
  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);