[PR #8966] [CLOSED] llama-mmap: fix missing include #12829

Closed
opened 2026-04-13 00:10:45 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/8966
Author: @wgottwalt
Created: 2/9/2025
Status: Closed

Base: mainHead: main


📝 Commits (1)

  • 620e1f0 llama-mmap: fix missing include

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 llama/llama.cpp/src/llama-mmap.h (+1 -0)

📄 Description

Clean vector or memory headers do not provide the uint32_t type, the cstdint header is required.

llama-mmap.h:5:1: note: ‘uint32_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’
4 | #include
+++ |+#include
5 |
llama-mmap.h:29:20: error: ‘uint32_t’ has not been declared
29 | void write_u32(uint32_t val) const;
| ^~~~~~~~


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/8966 **Author:** [@wgottwalt](https://github.com/wgottwalt) **Created:** 2/9/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`620e1f0`](https://github.com/ollama/ollama/commit/620e1f0f421d56320d5b192cc4664a979d1ef2d1) llama-mmap: fix missing include ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `llama/llama.cpp/src/llama-mmap.h` (+1 -0) </details> ### 📄 Description Clean vector or memory headers do not provide the uint32_t type, the cstdint header is required. llama-mmap.h:5:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ 4 | #include <vector> +++ |+#include <cstdint> 5 | llama-mmap.h:29:20: error: ‘uint32_t’ has not been declared 29 | void write_u32(uint32_t val) const; | ^~~~~~~~ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 00:10:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#12829