interactive-wayland: fallback to ftruncate() if needed
authorEvgeniy Khramtsov <evgeniy@khramtsov.org>
Wed, 14 Apr 2021 09:56:07 +0000 (12:56 +0300)
committerRan Benita <ran@unusedvar.com>
Wed, 14 Apr 2021 10:44:57 +0000 (13:44 +0300)
commitf04c7e93ce37c733b23c88ffad78768986a6f231
tree85a6c7574dabe7aab7da188afc6026ebabe13211
parent8b603dbe11335f3a27d5733c07b9f4f60a120f9f
interactive-wayland: fallback to ftruncate() if needed

Fallback to ftruncate() if the underlying filesystem does not
support posix_fallocate().

Idea by: Jan Beich <jbeich@FreeBSD.org>, Niclas Zeising <zeising@FreeBSD.org>
Inspired by: Wayland cursor/os-compatibility.c
[ran: small adjustments]
Signed-off-by: Ran Benita <ran@unusedvar.com>
tools/interactive-wayland.c