ls, tar: Guard inclusion of sys/sysmacros.h by absence of major
definition
Since musl 1.1.23, it too does not provide `major` and `minor` through sys/types.h, so instead include sys/sysmacros.h based on the absence of `major` rather than only on glibc. Thanks to Rich Felker for the suggestion.
This commit is contained in: