--- sg3-utils-1.29/src/sg_map26.c	2010-04-13 10:12:33.000000000 +0200
+++ src/src/sg_map26.c	2021-03-29 11:01:56.160182445 +0200
@@ -32,6 +32,7 @@
 #include <sys/ioctl.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/sysmacros.h>
 #include <linux/major.h>
 
 #ifdef HAVE_CONFIG_H
