Created attachment 188691 [details]
Instead of disabling posix_fallocate() for all FreeBSD versions let's treat failure gracefully, similar to base r325420.
Can someone help with testing? I don't use Wayland.
This is the same os-compatibility.c file as in Weston. I would prefer using SHM_ANON instead of tempfiles (and posix_fallocate doesn't work on that).
https://github.com/myfreeweb/weston/commit/174d428a4422f3f59a6629cb63be2eb22f1e1f39 ← (currently writing from this version of weston)
Greg, any chance you can check with upstream about including your changes?
I don't have a wayland/weston system myself to test with currently.
(In reply to Niclas Zeising from comment #2)
I've sent this change as a patch to weston (not to libwayland yet) but it was not reviewed yet.
I've added a similar patch that uses SHM_ANON instead of posix_fallocate. It can be found here, together with the update to wayland 1.17.