From 1587ede620b08631cdccae49b184834f302ad6e5 Mon Sep 17 00:00:00 2001 From: Thomas Jensen Date: Fri, 29 Dec 2023 15:12:37 +0100 Subject: [PATCH] Try to allow including sys/stat.h by undefining _POSIX_TIMERS We hoped that would skip parts of an include file which lead to "error: #error unimplemented for this target". Somehow doesn't, though. --- src/config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/config.h b/src/config.h index c00b47e..af8f063 100644 --- a/src/config.h +++ b/src/config.h @@ -41,6 +41,10 @@ /* enable strdup() declaration in string.h: */ #define __MISC_VISIBLE 1 +#ifdef _POSIX_TIMERS +#undef _POSIX_TIMERS +#endif + #ifndef _POSIX_SOURCE #define _POSIX_SOURCE #endif