浏览代码

Fix compile problem when ASSUME_DEVPTS=false
getpt.c: In function 'getpt':
getpt.c:83: 'have_no_dev_ptmx' undeclared ...
oops.
-Erik

Eric Andersen 23 年之前
父节点
当前提交
4ea4dcfee2
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      libc/stdlib/getpt.c

+ 2 - 0
libc/stdlib/getpt.c

@@ -80,7 +80,9 @@ getpt (void)
 	  /* If /dev/pts is not mounted then the UNIX98 pseudo terminals
              are not usable.  */
 	  close (fd);
+#if !defined UNIX98PTY_ONLY
 	  have_no_dev_ptmx = 1;
+#endif
 #endif
 	}
       else