From b1468a732fa26550f2a6f8a21cc7bd47b65a8c96 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 19 May 2019 21:02:07 +0200 Subject: Fix unix2syscall_darwin.go build failure Error was +GOOS=darwin +GOARCH=amd64 +go build -tags without_openssl # github.com/rfjakob/gocryptfs/internal/syscallcompat internal/syscallcompat/unix2syscall_darwin.go:22:32: u.Atimespec undefined (type unix.Stat_t has no field or method Atimespec) internal/syscallcompat/unix2syscall_darwin.go:23:32: u.Mtimespec undefined (type unix.Stat_t has no field or method Mtimespec) internal/syscallcompat/unix2syscall_darwin.go:24:32: u.Ctimespec undefined (type unix.Stat_t has no field or method Ctimespec) caused by https://github.com/golang/sys/commit/87c872767d25fb96dfe96c794fd028b38a08440b#diff-4913a9178621eadcdf191db17915fbcb --- internal/syscallcompat/unix2syscall_darwin.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal') diff --git a/internal/syscallcompat/unix2syscall_darwin.go b/internal/syscallcompat/unix2syscall_darwin.go index 93d0ab3..5767a27 100644 --- a/internal/syscallcompat/unix2syscall_darwin.go +++ b/internal/syscallcompat/unix2syscall_darwin.go @@ -19,8 +19,8 @@ func Unix2syscall(u unix.Stat_t) syscall.Stat_t { Size: u.Size, Blksize: u.Blksize, Blocks: u.Blocks, - Atimespec: syscall.Timespec(u.Atimespec), - Mtimespec: syscall.Timespec(u.Mtimespec), - Ctimespec: syscall.Timespec(u.Ctimespec), + Atimespec: syscall.Timespec(u.Atim), + Mtimespec: syscall.Timespec(u.Mtim), + Ctimespec: syscall.Timespec(u.Ctim), } } -- cgit v1.2.3