From here: https://www.gonza.cl/?p=2646

--- eudev-1.7/src/mtd_probe/mtd_probe.old.h	2017-06-18 20:36:10.408000000 -0400
+++ eudev-1.7/src/mtd_probe/mtd_probe.h	2017-06-18 20:36:36.124000000 -0400
@@ -17,6 +17,15 @@
  * Boston, MA  02110-1301  USA
  */
 
+#if defined __UINT32_MAX__ || UINT32_MAX 
+  #include <inttypes.h> 
+  #else 
+  typedef unsigned char uint8_t; 
+  typedef unsigned short uint16_t; 
+  typedef unsigned long uint32_t; 
+  typedef unsigned long long uint64_t; 
+#endif 
+
 #include <mtd/mtd-user.h>
 
 /* Full oob structure as written on the flash */
