]> git.meshlink.io Git - meshlink/commitdiff
Only call setitimer if ITIMER_REAL is defined. fix/pthread-fixes
authorGuus Sliepen <guus@meshlink.io>
Sat, 13 Jun 2020 19:45:08 +0000 (21:45 +0200)
committerGuus Sliepen <guus@meshlink.io>
Sat, 13 Jun 2020 19:45:08 +0000 (21:45 +0200)
Musl doesn't implement setitimer().

examples/manynodes.c

index 82beff3c8eeb9f535fa5cf3dec33f6e7e1065ecf..64ccd9c1c855c643fbe08f8c58e556a9098754d4 100644 (file)
@@ -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) {