--- a/daemons/lircmd.c
+++ b/daemons/lircmd.c
@@ -35,6 +35,16 @@
 #if defined(__linux__)
 #include <linux/input.h>
 #include <linux/uinput.h>
+#else
+#include <stdint.h>
+typedef int8_t   __s8;
+typedef uint8_t  __u8;
+typedef int16_t  __s16;
+typedef uint16_t __u16;
+typedef int32_t  __s32;
+typedef uint32_t __u32;
+typedef int64_t  __s64;
+typedef uint64_t __u64;
 #endif
 
 #define CLICK_DELAY 50000	/* usecs */