mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-12 13:27:21 +01:00
Added support for _POSIX_MAPPED_FILES if defined in source (#564)
This commit is contained in:
parent
1a5ee11377
commit
c9c820ff36
2
main.cpp
2
main.cpp
@ -24,6 +24,8 @@
|
||||
#include <unistd.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/stat.h>
|
||||
#elif defined (_POSIX_MAPPED_FILES)
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
#define ROUNDUP(X, K) (((X) + (K)-1) & -(K))
|
||||
|
Loading…
x
Reference in New Issue
Block a user