From 0f7085c9b5392e041fe4f78597b646ffd6e672cb Mon Sep 17 00:00:00 2001 From: Benny Siegert Date: Mon, 20 Feb 2012 09:04:57 +0100 Subject: [PATCH] Use O_foo constants from syscall, they are no longer in package os. --- serial_posix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serial_posix.go b/serial_posix.go index c9897ee..a88b4c0 100644 --- a/serial_posix.go +++ b/serial_posix.go @@ -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 }