From 5e8d8e15413e53337554af086e905bc7ae7fa089 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 13 Jun 2020 21:45:08 +0200 Subject: [PATCH] Only call setitimer if ITIMER_REAL is defined. Musl doesn't implement setitimer(). --- examples/manynodes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/manynodes.c b/examples/manynodes.c index 82beff3c..64ccd9c1 100644 --- a/examples/manynodes.c +++ b/examples/manynodes.c @@ -128,7 +128,7 @@ static void exportmeshgraph_timer(int signum) { exportmeshgraph(name); } -#ifndef _WIN32 +#ifdef ITIMER_REAL static bool exportmeshgraph_started = false; static bool exportmeshgraph_end(void) { -- 2.39.2