--- a/utils/keytable/keymap.h
+++ b/utils/keytable/keymap.h
@@ -2,6 +2,10 @@
 #ifndef __KEYMAP_H
 #define __KEYMAP_H
 
+#include <stdint.h>
+typedef uint32_t u_int32_t;
+typedef int error_t;
+
 struct keymap {
	struct keymap *next;
	char *name;
--- a/utils/ir-ctl/keymap.h
+++ b/utils/ir-ctl/keymap.h
@@ -2,6 +2,10 @@
 #ifndef __KEYMAP_H
 #define __KEYMAP_H
 
+#include <stdint.h>
+typedef uint32_t u_int32_t;
+typedef int error_t;
+
 struct keymap {
	struct keymap *next;
	char *name;
