浏览代码

Added winsize structure from before glibc-2.2.4 update

David Schleef 23 年之前
父节点
当前提交
577acda65c
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      libc/sysdeps/linux/powerpc/bits/termios.h

+ 7 - 0
libc/sysdeps/linux/powerpc/bits/termios.h

@@ -26,6 +26,13 @@ typedef unsigned int	tcflag_t;
 
 /* note: this is fixed to be the same as the kernel, not glibc */
 
+struct winsize {
+	unsigned short int ws_row;
+	unsigned short int ws_col;
+	unsigned short int ws_xpixel;
+	unsigned short int ws_ypixel;
+};
+
 #define NCCS 19
 struct termios {
 	tcflag_t c_iflag;		/* input mode flags */