summaryrefslogtreecommitdiff
path: root/libgo/go/time/sys_plan9.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/time/sys_plan9.go')
-rw-r--r--libgo/go/time/sys_plan9.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/time/sys_plan9.go b/libgo/go/time/sys_plan9.go
index 8484729448..11365a791f 100644
--- a/libgo/go/time/sys_plan9.go
+++ b/libgo/go/time/sys_plan9.go
@@ -55,9 +55,9 @@ func closefd(fd uintptr) {
}
func preadn(fd uintptr, buf []byte, off int) error {
- whence := 0
+ whence := seekStart
if off < 0 {
- whence = 2
+ whence = seekEnd
}
if _, err := syscall.Seek(int(fd), int64(off), whence); err != nil {
return err