diff options
Diffstat (limited to 'libgo/go/time/sys_unix.go')
-rw-r--r-- | libgo/go/time/sys_unix.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/time/sys_unix.go b/libgo/go/time/sys_unix.go index e592415daa5..91d54c9ffd0 100644 --- a/libgo/go/time/sys_unix.go +++ b/libgo/go/time/sys_unix.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 |