--- udev/udev.h.orig
+++ udev/udev.h
@@ -22,6 +22,7 @@
 #include <sys/types.h>
 #include <sys/param.h>
 #include <signal.h>
+#include <sys/sysmacros.h>

 #include "libudev.h"
 #include "libudev-private.h"


--- libudev/libudev.h.orig
+++ libudev/libudev.h
@@ -15,6 +15,7 @@
 #include <stdarg.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/sysmacros.h>

 #ifdef __cplusplus
 extern "C" {

--- extras/mtd_probe/mtd_probe.h.orig
+++ extras/mtd_probe/mtd_probe.h
@@ -18,6 +18,7 @@
  */
 
 #include <mtd/mtd-user.h>
+#include <stdint.h>
 
 /* Full oob structure as written on the flash */
 struct sm_oob {
