diff options
| author | Ian Lance Taylor <iant@golang.org> | 2019-12-20 13:05:24 -0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2019-12-23 23:29:48 +0000 |
| commit | 372efbbf3170ccf260186118cd3acf7f617055ae (patch) | |
| tree | 0f4c25ac5472f31ea2c41d6715e74d1cbbd58ed2 /src/syscall | |
| parent | 26f8b7074b314f45c2ccaab9dcc0f5730fe8bb68 (diff) | |
| download | go-372efbbf3170ccf260186118cd3acf7f617055ae.tar.xz | |
internal/syscall/unix: use fcntl64 on 32-bit GNU/Linux systems
Patch up runtime testing to use the libc fcntl function on Darwin,
which is what we should be doing anyhow. This is similar to how
we handle fcntl on AIX and Solaris.
Fixes #36211
Change-Id: I47ad87e11df043ce21496a0d59523dad28960f76
Reviewed-on: https://go-review.googlesource.com/c/go/+/212299
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Diffstat (limited to 'src/syscall')
| -rw-r--r-- | src/syscall/flock_linux_32bit.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/syscall/flock_linux_32bit.go b/src/syscall/flock_linux_32bit.go index e1548995b2..e11aed6ed1 100644 --- a/src/syscall/flock_linux_32bit.go +++ b/src/syscall/flock_linux_32bit.go @@ -1,9 +1,12 @@ -// +build linux,386 linux,arm linux,mips linux,mipsle - // Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// If you change the build tags here, see +// internal/syscall/unix/fcntl_linux_32bit.go. + +// +build linux,386 linux,arm linux,mips linux,mipsle + package syscall func init() { |
