mirror of
https://git.adityakumar.xyz/llama.cpp.git
synced 2024-11-09 23:29:44 +00:00
Make mmap_file static
This commit is contained in:
parent
64bde3ffd4
commit
d68c5dc435
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ struct llama_context_params llama_context_default_params() {
|
|||
// model loading
|
||||
//
|
||||
|
||||
void * mmap_file(const char* fname) {
|
||||
static void * mmap_file(const char* fname) {
|
||||
#if defined(MAP_FAILED)
|
||||
// POSIX mmap
|
||||
int fd = open(fname, O_RDONLY);
|
||||
|
|
Loading…
Reference in a new issue