Skip to content

Commit

Permalink
chore: update build directives
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Jun 26, 2024
1 parent aacbfe8 commit db2321a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion flock_aix.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// This code is adapted from the Go package:
// cmd/go/internal/lockedfile/internal/filelock

//+build aix
//go:build aix

package flock

Expand Down
7 changes: 4 additions & 3 deletions flock_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by the BSD 3-Clause
// license that can be found in the LICENSE file.

// +build !aix,!windows
//go:build !aix && !windows

package flock

Expand Down Expand Up @@ -171,8 +171,9 @@ retry:

// reopenFDOnError determines whether we should reopen the file handle
// in readwrite mode and try again. This comes from util-linux/sys-utils/flock.c:
// Since Linux 3.4 (commit 55725513)
// Probably NFSv4 where flock() is emulated by fcntl().
//
// Since Linux 3.4 (commit 55725513)
// Probably NFSv4 where flock() is emulated by fcntl().
func (f *Flock) reopenFDOnError(err error) (bool, error) {
if err != syscall.EIO && err != syscall.EBADF {
return false, nil
Expand Down
2 changes: 1 addition & 1 deletion flock_winapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by the BSD 3-Clause
// license that can be found in the LICENSE file.

// +build windows
//go:build windows

package flock

Expand Down

0 comments on commit db2321a

Please sign in to comment.