1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
commit 2f671df2f3015c1a44b8769420c01b6afae272f5
Author: Robert O'Callahan <robert@ocallahan.org>
Date: Sat Aug 2 10:16:42 2025 +1200
Provide our own definition of `struct termio` for testing.
Resolves #3998
--- a/src/test/ioctl_tty.c
+++ b/src/test/ioctl_tty.c
@@ -2,11 +2,23 @@
#include "util.h"
+/* glibc 2.42 removed termio:
+ https://sourceware.org/git/?p=glibc.git;a=commit;h=e04afb71771710cdc6025fe95908f5f17de7b72d
+*/
+struct rr_termio {
+ unsigned short c_iflag;
+ unsigned short c_oflag;
+ unsigned short c_cflag;
+ unsigned short c_lflag;
+ unsigned char c_line;
+ unsigned char c_cc[8];
+};
+
int main(void) {
int fd;
int ret;
struct termios* tc;
- struct termio* tio;
+ struct rr_termio* tio;
pid_t* pgrp;
int* navail;
int* outq;
|