Skip to content

Commit

Permalink
Use O_foo constants from syscall, they are no longer in package os.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsiegert committed Feb 20, 2012
1 parent a9a6fae commit 0f7085c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serial_posix.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

func openPort(name string, baud int) (rwc io.ReadWriteCloser, err error) {
f, err := os.OpenFile(name, os.O_RDWR|os.O_NOCTTY|os.O_NONBLOCK, 0666)
f, err := os.OpenFile(name, syscall.O_RDWR|syscall.O_NOCTTY|syscall.O_NONBLOCK, 0666)
if err != nil {
return
}
Expand Down

0 comments on commit 0f7085c

Please sign in to comment.