File tree 2 files changed +2
-2
lines changed 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -849,7 +849,7 @@ std::string fs_get_cache_directory() {
849
849
if (getenv (" LLAMA_CACHE" )) {
850
850
cache_directory = std::getenv (" LLAMA_CACHE" );
851
851
} else {
852
- #if defined(__linux__) || defined(__FreeBSD__) || defined(_AIX)
852
+ #if defined(__linux__) || defined(__FreeBSD__) || defined(_AIX) || defined(__OpenBSD__)
853
853
if (std::getenv (" XDG_CACHE_HOME" )) {
854
854
cache_directory = std::getenv (" XDG_CACHE_HOME" );
855
855
} else {
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ static std::string fs_get_cache_directory() {
111
111
if (getenv (" LLAMA_CACHE" )) {
112
112
cache_directory = std::getenv (" LLAMA_CACHE" );
113
113
} else {
114
- #if defined(__linux__) || defined(__FreeBSD__) || defined(_AIX)
114
+ #if defined(__linux__) || defined(__FreeBSD__) || defined(_AIX) || defined(__OpenBSD__)
115
115
if (std::getenv (" XDG_CACHE_HOME" )) {
116
116
cache_directory = std::getenv (" XDG_CACHE_HOME" );
117
117
} else {
You can’t perform that action at this time.
0 commit comments