mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
This commit replaces commit: libstb-hal: Fix compatibility issues with struct input_event time assignment These issues arose because of updates in OE/Yocto versions (e.g. >= Honister), which introduced changes requiring these adjustments. - Added conditional compilation to check for input_event_sec. - Updated hdmi_cec::rc_sync method to use appropriate time fields for 64-bit suseconds. - Maintained backward compatibility for older systems with 32-bit suseconds. - Leveraged macros defined in input.h for clarity and maintainability. This should ensure proper handling of suseconds and maintain backward compatibility with older systems. This implementation uses input_event_sec and input_event_usec macros for clarity and maintainability. This changes shuold resolve build issues encountered due to compatibility problems with newer versions of libraries. It is quite certain that similar adjustments will need to be made in other files. However, since I have only worked on this platform so far, only this part of the code was noticeable at first. It should be noted that this problem likely does not "yet" affect older build systems, but it will become necessary at some point. This also applies to Neutrino (adjustments will follow).