mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-06-29 04:35:05 +00:00
Make mmap_file static
This commit is contained in:
@ -296,7 +296,7 @@ struct llama_context_params llama_context_default_params() {
|
|||||||
// model loading
|
// model loading
|
||||||
//
|
//
|
||||||
|
|
||||||
void * mmap_file(const char* fname) {
|
static void * mmap_file(const char* fname) {
|
||||||
#if defined(MAP_FAILED)
|
#if defined(MAP_FAILED)
|
||||||
// POSIX mmap
|
// POSIX mmap
|
||||||
int fd = open(fname, O_RDONLY);
|
int fd = open(fname, O_RDONLY);
|
||||||
|
Reference in New Issue
Block a user