From: Guus Sliepen Date: Sat, 13 Jun 2020 19:45:08 +0000 (+0200) Subject: Only call setitimer if ITIMER_REAL is defined. X-Git-Url: http://git.meshlink.io/?p=meshlink;a=commitdiff_plain;h=5e8d8e15413e53337554af086e905bc7ae7fa089 Only call setitimer if ITIMER_REAL is defined. Musl doesn't implement setitimer(). --- 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) {