Make mmap_file static

This commit is contained in:
Slaren 2023-03-29 06:18:18 +02:00 committed by Justine Tunney
parent a1e0f17a05
commit 4ae12d0824
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

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