Skip to content

Commit

Permalink
Fix compilation on illumos.
Browse files Browse the repository at this point in the history
Fixes #765
  • Loading branch information
i-sevostyanov committed Oct 1, 2019
1 parent fa9f2b4 commit 72cbb40
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/dirlock/dirlock.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !windows
// +build !windows !illumos

package dirlock

Expand Down
21 changes: 21 additions & 0 deletions internal/dirlock/dirlock_illumos.go
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 72cbb40

Please sign in to comment.