diff -urN parted-3.2.orig/libparted/arch/linux.c parted-3.2/libparted/arch/linux.c
--- parted-3.2.orig/libparted/arch/linux.c	2014-06-15 14:15:54.000000000 -0500
+++ parted-3.2/libparted/arch/linux.c	2019-01-17 10:11:09.758805481 -0600
@@ -37,6 +37,7 @@
 #include <dirent.h>
 #include <sys/ioctl.h>
 #include <sys/stat.h>
+#include <sys/sysmacros.h>
 #include <sys/types.h>
 #include <sys/utsname.h>        /* for uname() */
 #include <scsi/scsi.h>
