aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2018-10-19 18:09:42 +0200
committerIan Lance Taylor <iant@golang.org>2018-10-21 16:32:01 +0000
commitf5df0a95751e92efcc5adb301603781035eac5b3 (patch)
tree2a978f3e698faeff64d6f3daaa1026a2f5774cda /src
parent035f9e8102d3b46877b7462fcd365324272d1d0e (diff)
downloadgo-f5df0a95751e92efcc5adb301603781035eac5b3.tar.xz
cmd/internal/xcoff: don't use io.SeekCurrent for go1.4 compatibility
This fixes the build with go1.4 during bootstrap. Change-Id: I35fa1dc3d877d31d5ffe515f5f19188f4a8b77f4 Reviewed-on: https://go-review.googlesource.com/c/143377 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/internal/xcoff/file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/internal/xcoff/file.go b/src/cmd/internal/xcoff/file.go
index 86a85c388c..0923b9fcf3 100644
--- a/src/cmd/internal/xcoff/file.go
+++ b/src/cmd/internal/xcoff/file.go
@@ -355,7 +355,7 @@ func NewFile(r io.ReaderAt) (*File, error) {
// Read csect auxiliary entry (by convention, it is the last).
if !needAuxFcn {
- if _, err := sr.Seek(int64(numaux-1)*SYMESZ, io.SeekCurrent); err != nil {
+ if _, err := sr.Seek(int64(numaux-1)*SYMESZ, os.SEEK_CUR); err != nil {
return nil, err
}
}
@@ -382,7 +382,7 @@ func NewFile(r io.ReaderAt) (*File, error) {
f.Symbols = append(f.Symbols, sym)
skip:
i += numaux // Skip auxiliary entries
- if _, err := sr.Seek(int64(numaux)*SYMESZ, io.SeekCurrent); err != nil {
+ if _, err := sr.Seek(int64(numaux)*SYMESZ, os.SEEK_CUR); err != nil {
return nil, err
}
}