Make mmap_file static

This commit is contained in:
Slaren 2023-03-29 06:18:18 +02:00 committed by Justine Tunney
parent 64bde3ffd4
commit d68c5dc435

View file

@ -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);