From 372efbbf3170ccf260186118cd3acf7f617055ae Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 20 Dec 2019 13:05:24 -0800 Subject: 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 TryBot-Result: Gobot Gobot Reviewed-by: Tobias Klauser --- src/syscall/flock_linux_32bit.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/syscall') 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() { -- cgit v1.3-5-g45d5