The inclusion of <sys/sysmacros.h> by <sys/types.h> was deprecated and removed. This is causing major, minor, and makedev to be undefined.