-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1195 from i-sevostyanov/master
dirlock: fix compilation on illumos.
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build !windows | ||
// +build !windows !illumos | ||
|
||
package dirlock | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |