summaryrefslogtreecommitdiffstats
path: root/cwriter/util_bsd.go
diff options
context:
space:
mode:
Diffstat (limited to 'cwriter/util_bsd.go')
-rw-r--r--cwriter/util_bsd.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cwriter/util_bsd.go b/cwriter/util_bsd.go
new file mode 100644
index 0000000..215643b
--- /dev/null
+++ b/cwriter/util_bsd.go
@@ -0,0 +1,7 @@
+//go:build darwin || dragonfly || freebsd || netbsd || openbsd
+
+package cwriter
+
+import "golang.org/x/sys/unix"
+
+const ioctlReadTermios = unix.TIOCGETA