along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#if !defined(__APPLE__) && defined(_GNU_SOURCE)
#include <malloc.h>
+#endif
#include <uv.h>
#include <libknot/packet/pkt.h>
#include <libknot/internal/net.h>
array_push(worker->pools, mp_context);
} else {
mp_delete(mp_context);
-#ifdef _GNU_SOURCE
+#if !defined(__APPLE__) && defined(_GNU_SOURCE)
/* Decommit memory every once in a while */
static int mp_delete_count = 0;
if (++mp_delete_count == 1000) {