515e7481de
Some parts of pkg/archive is called on both client/daemon code. To get it compiling on Windows, these funcs are extracted into files with build tags. Signed-off-by: Ahmet Alp Balkan <ahmetb@microsoft.com>
16 lines
220 B
Go
16 lines
220 B
Go
// +build !windows
|
|
|
|
package system
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
func Lstat(path string) (*syscall.Stat_t, error) {
|
|
s := &syscall.Stat_t{}
|
|
err := syscall.Lstat(path, s)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return s, nil
|
|
}
|