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 @@ -849,7 +849,7 @@ std::string fs_get_cache_directory() {
849849 if (getenv (" LLAMA_CACHE" )) {
850850 cache_directory = std::getenv (" LLAMA_CACHE" );
851851 } else {
852- #if defined(__linux__) || defined(__FreeBSD__) || defined(_AIX)
852+ #if defined(__linux__) || defined(__FreeBSD__) || defined(_AIX) || defined(__OpenBSD__)
853853 if (std::getenv (" XDG_CACHE_HOME" )) {
854854 cache_directory = std::getenv (" XDG_CACHE_HOME" );
855855 } 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