浏览代码

I missed a spot.
-Erik

Eric Andersen 22 年之前
父节点
当前提交
4f352d5271
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      libc/inet/rpc/ruserpass.c

+ 2 - 0
libc/inet/rpc/ruserpass.c

@@ -118,7 +118,9 @@ int ruserpass(const char *host, const char **aname, const char **apass)
 		return (0);
 	}
 	/* No threads use this stream.  */
+#ifdef __UCLIBC_HAS_THREADS__
 	__fsetlocking (cfile, FSETLOCKING_BYCALLER);
+#endif
 	if (gethostname(myname, sizeof(myname)) < 0)
 		myname[0] = '\0';
 	mydomain = strchr(myname, '.');