Missing of fadvise is not a fatal error

This commit is contained in:
Andrea Mazzoleni 2026-03-18 11:31:44 +01:00
parent 3bbe38d959
commit 3f9b877183

View file

@ -65,7 +65,7 @@ STREAM* sopen_read(const char* file, int flags)
/* advise sequential access */
ret = posix_fadvise(s->handle[0].f, 0, 0, POSIX_FADV_SEQUENTIAL);
if (ret == ENOSYS) {
log_fatal(errno, "WARNING! fadvise() is not supported in this platform. Performance may not be optimal!\n");
log_error(errno, "WARNING! fadvise() is not supported in this platform. Performance may not be optimal!\n");
/* call is not supported, like in armhf, see posix_fadvise manpage */
ret = 0;
}