The inclusion of <sys/sysmacros.h> by <sys/types.h> was deprecated and removed. This is causing major, minor, and makedev to be undefined. The patch is an upstream commit fixing it. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>