From 2ea22f12719fb702450843ba91321b9014f19b49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Thu, 22 Sep 2022 15:53:38 +0200 Subject: [PATCH] feat: compatiblity with Mac OS X --- thpool.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/thpool.c b/thpool.c index d320f8f..329f3c6 100644 --- a/thpool.c +++ b/thpool.c @@ -8,7 +8,13 @@ * ********************************/ +#if defined(__APPLE__) +#include +#else +#ifndef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 200809L +#endif +#endif #include #include #include