Skip to content

Commit

Permalink
Merge pull request #1195 from i-sevostyanov/master
Browse files Browse the repository at this point in the history
dirlock: fix compilation on illumos.
  • Loading branch information
ploxiln authored Oct 3, 2019
2 parents fa9f2b4 + 72cbb40 commit 5c31a51
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 5c31a51

Please sign in to comment.