From: Davin McCall Date: Wed, 1 Jan 2020 06:01:48 +0000 (+1000) Subject: Compilation fix for Musl systems X-Git-Tag: v0.8.1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7f82382b6ed020d99706bb39fca4490d78f2c5ea;p=oweals%2Fdinit.git Compilation fix for Musl systems --- diff --git a/src/dasynq/dasynq-daryheap.h b/src/dasynq/dasynq-daryheap.h index d824137..2143ad2 100644 --- a/src/dasynq/dasynq-daryheap.h +++ b/src/dasynq/dasynq-daryheap.h @@ -6,6 +6,8 @@ #include #include +#include + #include "dasynq-svec.h" @@ -206,7 +208,7 @@ class dary_heap hnd.heap_index = -1; // largest object size is PTRDIFF_MAX, so we expect the largest vector is that / sizeof node: - constexpr hindex_t max_allowed = (std::numeric_limits::max() - 1) / sizeof(heap_node); + constexpr hindex_t max_allowed = (std::numeric_limits::max() - 1) / sizeof(heap_node); if (num_nodes == max_allowed) { throw std::bad_alloc();