[sources] Minor fixup to enable building on OSX

This commit is contained in:
Ciprian Dorin Craciun 2019-08-13 22:03:27 +03:00
parent 6f936410ac
commit a3f90611a5

View file

@ -62,7 +62,7 @@ func archiveFile (_context *context, _pathResolved string, _pathInArchive string
if _stat, _error := _file.Stat (); _error == nil {
_stat := _stat.Sys()
if _stat, _ok := _stat.(*syscall.Stat_t); _ok {
_fileId = [2]uint64 { _stat.Dev, _stat.Ino }
_fileId = [2]uint64 { uint64 (_stat.Dev), uint64 (_stat.Ino) }
} else {
return fmt.Errorf ("[6578d2d7] failed `stat`-ing: `%s`!", _pathResolved)
}