aboutsummaryrefslogtreecommitdiff
path: root/internal/syscallcompat
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-05-19 21:02:07 +0200
committerJakob Unterwurzacher2019-05-19 21:04:33 +0200
commitb1468a732fa26550f2a6f8a21cc7bd47b65a8c96 (patch)
treefa0af235ea56c5a42727414a7ed63e9842399ce6 /internal/syscallcompat
parent5888df9fbcc1582ecfc2472973f4ba651ea3f8cc (diff)
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
Diffstat (limited to 'internal/syscallcompat')
-rw-r--r--internal/syscallcompat/unix2syscall_darwin.go6
1 files changed, 3 insertions, 3 deletions
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),
}
}