aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-08-07 15:53:26 +0200
committerGitea <gitea@fake.local>2022-08-11 03:58:26 +0200
commitbecf1cc858d1590d75f00124b77f04578da7fae0 (patch)
tree38109c75a5f81372eaf779f01904b119eeae5151 /.github/workflows
parentfb9686c6505475f342ad94fa5ed1351f554f97fe (diff)
downloadnsxiv-becf1cc858d1590d75f00124b77f04578da7fae0.tar.zst
fix: build failure when _SC_PHYS_PAGES is not defined
_SC_PHYS_PAGES isn't POSIX and might not be defined. in such case, just return back `CACHE_SIZE_FALLBACK`. NOTE: POSIX says the `names` in `sysconf()` are "symbolic constants" not necessarily macros. So we might end up returning the fallback in some cases where `_SC_PHYS_PAGES` *was* available, but not defined as a macro. which is not ideal, but nothing fatal. in practice, this shouldn't be an issue since most systems seems to define them to be macros, i've checked Glibc, Musl, OpenBSD, FreeBSD and Haiku. also add a (useful) comment on `config.h` describing the effect higher cache size has. Closes: https://codeberg.org/nsxiv/nsxiv/issues/354
Diffstat (limited to '.github/workflows')
0 files changed, 0 insertions, 0 deletions