at 24.05-pre 925 B view raw
1--- a/daemons/lircd.cpp 2+++ b/daemons/lircd.cpp 3@@ -110,6 +110,17 @@ int clock_gettime(int clk_id, struct timespec *t){ 4 #endif 5 #define WHITE_SPACE " \t" 6 7+/* Defines removed in linux-headers-5.18: 8+ https://sourceforge.net/p/lirc/git/merge-requests/45/ 9+ */ 10+#ifndef LIRC_CAN_SET_REC_FILTER 11+# define LIRC_CAN_SET_REC_FILTER 0x08000000 12+#endif 13+ 14+#ifndef LIRC_CAN_NOTIFY_DECODE 15+# define LIRC_CAN_NOTIFY_DECODE 0x01000000 16+#endif 17+ 18 static const logchannel_t logchannel = LOG_APP; 19 20 /** How long we sleep while waiting for busy write sockets. */ 21--- a/tools/lirc-lsplugins.cpp 22+++ b/tools/lirc-lsplugins.cpp 23@@ -21,6 +21,12 @@ 24 #include "config.h" 25 #include "lirc_private.h" 26 27+/* Defines removed in linux-headers-5.18: 28+ https://sourceforge.net/p/lirc/git/merge-requests/45/ 29+ */ 30+#ifndef LIRC_CAN_NOTIFY_DECODE 31+# define LIRC_CAN_NOTIFY_DECODE 0x01000000 32+#endif 33 34 #define USAGE \ 35 "\nSynopsis:\n" \