File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -830,7 +830,7 @@ std::string fs_get_cache_directory() {
830830 if (getenv (" LLAMA_CACHE" )) {
831831 cache_directory = std::getenv (" LLAMA_CACHE" );
832832 } else {
833- #if defined(__linux__) || defined(__FreeBSD__) || defined(_AIX)
833+ #if defined(__linux__) || defined(__FreeBSD__) || defined(_AIX) || defined(__OpenBSD__)
834834 if (std::getenv (" XDG_CACHE_HOME" )) {
835835 cache_directory = std::getenv (" XDG_CACHE_HOME" );
836836 } else {
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ static std::string fs_get_cache_directory() {
111111 if (getenv (" LLAMA_CACHE" )) {
112112 cache_directory = std::getenv (" LLAMA_CACHE" );
113113 } else {
114- #if defined(__linux__) || defined(__FreeBSD__) || defined(_AIX)
114+ #if defined(__linux__) || defined(__FreeBSD__) || defined(_AIX) || defined(__OpenBSD__)
115115 if (std::getenv (" XDG_CACHE_HOME" )) {
116116 cache_directory = std::getenv (" XDG_CACHE_HOME" );
117117 } else {
You can’t perform that action at this time.
0 commit comments