libarchive: Fix detection of 'major' on Solaris 11.4
In archive_pack_dev.c there is code checking the HAVE_MAJOR macro,
but it is not computed. Port the equivalent logic from
archive_entry.c.
In archive_pack_dev.c there is code checking the HAVE_MAJOR macro,
but it is not computed. Port the equivalent logic from
archive_entry.c.