Make utils_daemon and volumes cross-platform compileable.

Signed-off-by: Rik Nijessen <riknijessen@gmail.com>
This commit is contained in:
Rik Nijessen 2015-03-11 16:42:49 +01:00
parent 718f112173
commit a5e54d5788
7 changed files with 30 additions and 16 deletions

View file

@ -7,6 +7,11 @@ import (
"syscall"
)
func fromStatT(s *syscall.Win32FileAttributeData) (*Stat, error) {
func fromStatT(s *syscall.Win32FileAttributeData) (*Stat_t, error) {
return nil, errors.New("fromStatT should not be called on windows path")
}
func Stat(path string) (*Stat_t, error) {
// should not be called on cli code path
return nil, ErrNotSupportedPlatform
}