From: Wilken Gottwalt Date: Mon, 10 Feb 2025 18:58:18 +0000 (+0100) Subject: llama-mmap: fix missing include (#11796) X-Git-Tag: upstream/0.0.4719~36 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=19b392d58dc08c366d0b29bd3b9c6991fa4e1662;p=pkg%2Fggml%2Fsources%2Fllama.cpp llama-mmap: fix missing include (#11796) Technically the fixed width types come only from iostream and cstdint/stdint.h headers. memory and vector headers should not provide these. In GCC 15 the headers are cleaned up and you require the proper header cstdint. src/llama-mmap.h:26:5: error: ‘uint32_t’ does not name a type 26 | uint32_t read_u32() const; | ^~~~~~~~ --- diff --git a/src/llama-mmap.h b/src/llama-mmap.h index 1da9ecb6..4e5aec3f 100644 --- a/src/llama-mmap.h +++ b/src/llama-mmap.h @@ -1,5 +1,6 @@ #pragma once +#include #include #include