Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(297)

Unified Diff: ssh/terminal/util_linux.go

Issue 101670043: code review 101670043: go.crypt/ssh/terminal: declare TCGETS, TCSETS constants... (Closed)
Patch Set: diff -r 1064b89a6fb5 https://code.google.com/p/go.crypto Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ssh/terminal/util_linux.go
===================================================================
--- a/ssh/terminal/util_linux.go
+++ b/ssh/terminal/util_linux.go
@@ -2,11 +2,10 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build linux
-
package terminal
-import "syscall"
-
-const ioctlReadTermios = syscall.TCGETS
-const ioctlWriteTermios = syscall.TCSETS
+// These constants are declared here, rather than importing
+// them from the syscall package as some syscall packages, even
+// on linux, for example gccgo, do not declare them.
+const ioctlReadTermios = 0x5401 // syscall.TCGETS
+const ioctlWriteTermios = 0x5402 // syscall.TCSETS
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b