From d7d6d1afa63132d52428065a548f7795152bc4cb Mon Sep 17 00:00:00 2001 From: Justin Delegard Date: Fri, 23 Jun 2017 22:12:44 -0700 Subject: [PATCH] serial_linux/posix: don't use _posix if cgo is enabled on linux Setting linux-compatible baudrates (like 1Mbaud) does not work using _posix. --- serial_linux.go | 2 +- serial_posix.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/serial_linux.go b/serial_linux.go index adf18c6..beaf642 100644 --- a/serial_linux.go +++ b/serial_linux.go @@ -1,4 +1,4 @@ -// +build linux,!cgo +// +build linux package serial diff --git a/serial_posix.go b/serial_posix.go index 3e8bc7c..a05d6d1 100644 --- a/serial_posix.go +++ b/serial_posix.go @@ -1,4 +1,4 @@ -// +build !windows,cgo +// +build !windows,!linux,cgo package serial