From 5c6f589be0761ce84d57786a76dba483be7198df Mon Sep 17 00:00:00 2001 From: zhangyd Date: Fri, 1 Sep 2023 15:18:49 +0800 Subject: [PATCH] support mips64le --- terminal/runereader_linux.go | 4 ++-- terminal/runereader_mips64le.go | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 terminal/runereader_mips64le.go diff --git a/terminal/runereader_linux.go b/terminal/runereader_linux.go index dc7ec670..fef6fe89 100644 --- a/terminal/runereader_linux.go +++ b/terminal/runereader_linux.go @@ -2,8 +2,8 @@ // Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build linux && !ppc64le -// +build linux,!ppc64le +//go:build linux && !ppc64le && !mips64le +// +build linux,!ppc64le,!mips64le package terminal diff --git a/terminal/runereader_mips64le.go b/terminal/runereader_mips64le.go new file mode 100644 index 00000000..7e515222 --- /dev/null +++ b/terminal/runereader_mips64le.go @@ -0,0 +1,8 @@ +//go:build mips64le && linux +// +build mips64le,linux + +package terminal + +// Used syscall numbers from https://github.com/golang/go/blob/master/src/syscall/ztypes_linux_mips64le.go +const ioctlReadTermios = 0x540d // syscall.TCGETS +const ioctlWriteTermios = 0x540e // syscall.TCSETS