From b8e34b1efcb27c772f0d2ca12f5ecdd6b7fc817b Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Thu, 16 Jul 2026 21:16:45 +0200 Subject: sharedstorage: fix darwin & freebsd build failure --- tests/cluster/poc_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/cluster/poc_test.go b/tests/cluster/poc_test.go index e8b6da6..52b9ec9 100644 --- a/tests/cluster/poc_test.go +++ b/tests/cluster/poc_test.go @@ -44,11 +44,11 @@ func TestPoCFcntlFlock(t *testing.T) { Start: 0, Len: 0, } - err = unix.FcntlFlock(uintptr(fd1), unix.F_OFD_SETLK, &lk) + err = unix.FcntlFlock(uintptr(fd1), syscallcompat.F_OFD_SETLK, &lk) if err != nil { t.Fatal(err) } - err = unix.FcntlFlock(uintptr(fd2), unix.F_OFD_SETLK, &lk) + err = unix.FcntlFlock(uintptr(fd2), syscallcompat.F_OFD_SETLK, &lk) if err == nil { t.Fatal("double-lock succeeded but should have failed") } @@ -190,7 +190,7 @@ func doTestPoCTornWrite(t *testing.T, locking bool) { Start: 0, Len: int64(len(blockData)), } - if err := unix.FcntlFlock(uintptr(f.Fd()), unix.F_OFD_SETLKW, &lk); err != nil { + if err := unix.FcntlFlock(uintptr(f.Fd()), syscallcompat.F_OFD_SETLKW, &lk); err != nil { t.Error(err) return } -- cgit v1.2.3