This way, they can be inlined and dead code can be removed on Windows. Also fixed some comments.
9 lines
183 B
Go
9 lines
183 B
Go
// +build !freebsd,!windows
|
|
|
|
package restic
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
func mknod(path string, mode uint32, dev uint64) (err error) {
|
|
return unix.Mknod(path, mode, int(dev))
|
|
}
|