I think it needs some discussion whether this can be actual improvement or rather caveat itself. while it looks like a good idea, I'm afraid that once "#include <haproxy/compat.h>" is accidently lost, #ifdef HAVE_PTHREAD_GETCPUCLOCKID will silently switch to opposite without any visible error
Ilia Shipitsin (2): BUILD: introduce HAVE_PTHREAD_GETCPUCLOCKID flag BUILD: switch to using macros HAVE_PTHREAD_GETCPUCLOCKID include/haproxy/compat.h | 9 +++++++++ include/haproxy/signal-t.h | 5 ++++- src/clock.c | 19 ++++++++----------- src/wdt.c | 6 ++++-- 4 files changed, 25 insertions(+), 14 deletions(-) -- 2.43.0.windows.1