diff options
Diffstat (limited to 'libgo/go/syscall/libcall_linux.go')
-rw-r--r-- | libgo/go/syscall/libcall_linux.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go index f0479eb..ff81f54 100644 --- a/libgo/go/syscall/libcall_linux.go +++ b/libgo/go/syscall/libcall_linux.go @@ -6,7 +6,10 @@ package syscall -import "unsafe" +import ( + "internal/race" + "unsafe" +) //sys Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) //__go_openat(dirfd _C_int, path *byte, flags _C_int, mode Mode_t) _C_int @@ -321,8 +324,8 @@ func Pipe2(p []int, flags int) (err error) { //sys sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error) //sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - if raceenabled { - raceReleaseMerge(unsafe.Pointer(&ioSync)) + if race.Enabled { + race.ReleaseMerge(unsafe.Pointer(&ioSync)) } var soff Offset_t var psoff *Offset_t |