diff --git a/internal/dirlock/dirlock.go b/internal/dirlock/dirlock.go index 88d5d75f9..0e7bd3844 100644 --- a/internal/dirlock/dirlock.go +++ b/internal/dirlock/dirlock.go @@ -1,4 +1,4 @@ -// +build !windows +// +build !windows !illumos package dirlock diff --git a/internal/dirlock/dirlock_illumos.go b/internal/dirlock/dirlock_illumos.go new file mode 100644 index 000000000..b6c93236a --- /dev/null +++ b/internal/dirlock/dirlock_illumos.go @@ -0,0 +1,21 @@ +// +build illumos + +package dirlock + +type DirLock struct { + dir string +} + +func New(dir string) *DirLock { + return &DirLock{ + dir: dir, + } +} + +func (l *DirLock) Lock() error { + return nil +} + +func (l *DirLock) Unlock() error { + return nil +}