--- include/media/lirc.h.orig	2022-09-25 14:03:38
+++ include/media/lirc.h	2024-05-06 13:46:40
@@ -6,8 +6,16 @@
 #ifndef _LINUX_LIRC_H
 #define _LINUX_LIRC_H
 
+#ifdef __linux__
 #include <linux/types.h>
 #include <linux/ioctl.h>
+#else
+#include <sys/ioctl.h>
+#include <stdint.h>
+#define __u64 uint64_t
+#define __u32 uint32_t
+#define __u16 uint16_t
+#endif
 
 #define PULSE_BIT       0x01000000
 #define PULSE_MASK      0x00FFFFFF
