On Sat, Dec 20, 2025, at 14:55, Thomas Weißschuh wrote:
+struct timespec {
- __kernel_old_time_t tv_sec;
- long tv_nsec;
+}; +#define _STRUCT_TIMESPEC
+struct timeval {
- __kernel_old_time_t tv_sec;
- __kernel_suseconds_t tv_usec;
+};
+#define timeval __nolibc_kernel_timeval +#include <linux/time.h> +#undef timeval
This looks like an appropriate workaround for nolibc so it can work with old kernel headers, but I feel like we need to also fix the kernel headers so at some point in the future we won't need those workarounds any more.
Arnd