Skip to content

Commit 2f671df

Browse files
committed
Provide our own definition of struct termio for testing.
Resolves #3998
1 parent 34ff3a7 commit 2f671df

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/test/ioctl_tty.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,24 @@ struct termios2 {
1919
};
2020
#endif
2121

22+
/* glibc 2.42 removed termio:
23+
https://sourceware.org/git/?p=glibc.git;a=commit;h=e04afb71771710cdc6025fe95908f5f17de7b72d
24+
*/
25+
struct rr_termio {
26+
unsigned short c_iflag;
27+
unsigned short c_oflag;
28+
unsigned short c_cflag;
29+
unsigned short c_lflag;
30+
unsigned char c_line;
31+
unsigned char c_cc[8];
32+
};
33+
2234
int main(void) {
2335
int fd;
2436
int ret;
2537
struct termios* tc;
2638
struct termios2* tc2;
27-
struct termio* tio;
39+
struct rr_termio* tio;
2840
pid_t* pgrp;
2941
int* navail;
3042
int* outq;

0 commit comments

Comments
 (0)