From 52ac783e6c71e1bd4175ea0765fa70a65bfd05e8 Mon Sep 17 00:00:00 2001 From: Ananda Umamil Date: Sat, 6 Mar 2021 16:32:20 +0700 Subject: [PATCH] Fix build on x86_64-linux-musl --- src/compiler/bigint.c | 2 +- src/utils/file_utils.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/bigint.c b/src/compiler/bigint.c index c4f34c68b..ea7b4ef50 100644 --- a/src/compiler/bigint.c +++ b/src/compiler/bigint.c @@ -193,7 +193,7 @@ static void to_twos_complement(BigInt *dest, const BigInt *source, size_t bit_co if (dest->digit == 0) dest->digit_count = 0; return; } - dest->digits = malloc_arena(dest->digit_count * sizeof(u_int64_t)); + dest->digits = malloc_arena(dest->digit_count * sizeof(uint64_t)); for (size_t i = 0; i < digits_to_copy; i += 1) { uint64_t digit = (i < source->digit_count) ? source_digits[i] : 0; diff --git a/src/utils/file_utils.c b/src/utils/file_utils.c index 89102839d..4e717fdb5 100644 --- a/src/utils/file_utils.c +++ b/src/utils/file_utils.c @@ -2,6 +2,7 @@ // Use of this source code is governed by the GNU LGPLv3.0 license // a copy of which can be found in the LICENSE file. +#include #include "common.h" #include "errors.h" #include "lib.h" @@ -9,8 +10,7 @@ #include #include #include -#include -#include +#include #include "whereami.h" const char* expand_path(const char* path)