build: Define MAJOR_IN_TYPES when major is defined in sys/types.h
Autoconf macro AC_HEADER_MAJOR doesn't define a macro in config.h when major is defined in sys/types.h. This was not a problem because major is assumed to be always available. However, commit aefffa3f changes this assumption in order to fix build on systems without major, which causes code using major to be disabled on systems putting major in sys/types.h. This commit defines a new macro MAJOR_IN_TYPES for both autotools and meson builds to make major useful on these systems again.
Showing with 6 additions and 0 deletions