--- libgo/go/archive/tar/stat_unix.go.orig 2020-03-04 19:30:03.000000000 +1100 +++ libgo/go/archive/tar/stat_unix.go 2020-09-21 23:50:46.397608000 +1000 @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix linux darwin dragonfly freebsd openbsd netbsd solaris +// +build aix bsdsunix linux darwin dragonfly freebsd openbsd netbsd solaris package tar @@ -81,6 +81,11 @@ major := uint32((dev >> 8) & 0xff) minor := uint32(dev & 0xffff00ff) h.Devmajor, h.Devminor = int64(major), int64(minor) + case "bsdsunix": + // Copied from golang.org/x/sys/unix/dev_bsdsunix.go. + major := uint32((dev >> 8) & 0xff) + minor := uint32(dev & 0xffff00ff) + h.Devmajor, h.Devminor = int64(major), int64(minor) case "freebsd": // Copied from golang.org/x/sys/unix/dev_freebsd.go. major := uint32((dev >> 8) & 0xff)