Description: Fix termios constants on PPC architectures
 Some architectures, notably PPC and MIPS, use different ioctls for
 termios. This changes the constants to use the ones defined in
 golang.org/x/sys/unix which should handle edge case architectures
 better.
Forwarded: https://github.com/pkg/term/pull/60
Author: Stephen Gelman <ssgelm@debian.org>
Last-Update: 2020-12-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/termios/termios_linux.go
+++ b/termios/termios_linux.go
@@ -5,12 +5,12 @@ import (
 )
 
 const (
-	TCSETS  = 0x5402
-	TCSETSW = 0x5403
-	TCSETSF = 0x5404
-	TCFLSH  = 0x540B
-	TCSBRK  = 0x5409
-	TCSBRKP = 0x5425
+	TCSETS  = unix.TCSETS
+	TCSETSW = unix.TCSETSW
+	TCSETSF = unix.TCSETSF
+	TCFLSH  = unix.TCFLSH
+	TCSBRK  = unix.TCSBRK
+	TCSBRKP = unix.TCSBRKP
 
 	IXON    = 0x00000400
 	IXANY   = 0x00000800
