Skip to content
Commit a29d17e0 authored by Ihor Antonov's avatar Ihor Antonov Committed by Héctor Orón Martínez
Browse files

os: fallback for unsupported posix_fallocate



Some filesystems do not support fallocate and return EOPNOTSUPP.

On musl-based distros libwayland-cursor exits abruptly which causes the
application to crash. Unlike glibc, musl does not provide a fallback
mechanism for handling unsupported fallocate. Instead, musl developers
argue that application should handle the case of unsupported system
call.

This commit allows falback to ftruncate in case when EOPNOTSUPP
was recieved.

Signed-off-by: default avatarIhor Antonov <ihor@antonovs.family>
parent bdce72e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment