Skip to content

Commit

Permalink
serial_linux/posix: don't use _posix if cgo is enabled on linux
Browse files Browse the repository at this point in the history
Setting linux-compatible baudrates (like 1Mbaud) does not work using
_posix.
  • Loading branch information
jdizzle committed Jun 24, 2017
1 parent e50d7d2 commit d7d6d1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion serial_linux.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux,!cgo
// +build linux

package serial

Expand Down
2 changes: 1 addition & 1 deletion serial_posix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !windows,cgo
// +build !windows,!linux,cgo

package serial

Expand Down

0 comments on commit d7d6d1a

Please sign in to comment.