diff options
author | Chris Severance | 2023-01-03 03:45:47 -0500 |
---|---|---|
committer | Chris Severance | 2023-01-03 03:45:47 -0500 |
commit | 27ef337cf690916a97ba8b9262dfa94a48d85d67 (patch) | |
tree | b4aea06ff6abb7f3ecdca6c81d3d821568900a8f /0011-kernel-6.0-set_termios-const-ktermios.patch | |
parent | dbdbbc135443af2d905362f41b54ac218ef7e90c (diff) | |
download | aur-27ef337cf690916a97ba8b9262dfa94a48d85d67.tar.gz |
autu: Update to 8.00-6
Diffstat (limited to '0011-kernel-6.0-set_termios-const-ktermios.patch')
-rw-r--r-- | 0011-kernel-6.0-set_termios-const-ktermios.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/0011-kernel-6.0-set_termios-const-ktermios.patch b/0011-kernel-6.0-set_termios-const-ktermios.patch new file mode 100644 index 000000000000..7421f9cc6efa --- /dev/null +++ b/0011-kernel-6.0-set_termios-const-ktermios.patch @@ -0,0 +1,19 @@ +diff -pNaru5 a/nslink.c b/nslink.c +--- a/nslink.c 2023-01-03 02:18:37.770057769 -0500 ++++ b/nslink.c 2023-01-03 02:19:36.499474484 -0500 +@@ -3043,11 +3043,15 @@ static void nrp_close(struct tty_struct + DebugOpen("ttySI%d (count=%d) enter\n", info->line, info->port.count); + tty_port_close(&info->port, tty, filp); + DebugOpen("ttySI%d (count=%d) return\n", info->line, info->port.count); + } + ++#if LINUX_VERSION_CODE < VERSION_CODE(6,0,0) + static void nrp_set_termios(struct tty_struct *tty, struct ktermios *old_termios) ++#else ++static void nrp_set_termios(struct tty_struct *tty, const struct ktermios *old_termios) ++#endif + { + struct nr_port *info = (struct nr_port *) tty->driver_data; + unsigned cflag; + #if LINUX_VERSION_CODE >= VERSION_CODE(3,7,0) + struct ktermios *termios = &tty->termios; |