Index: head/graphics/wayland/Makefile =================================================================== --- head/graphics/wayland/Makefile +++ head/graphics/wayland/Makefile @@ -3,7 +3,7 @@ PORTNAME= wayland PORTVERSION= 1.18.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= graphics wayland MASTER_SITES= https://wayland.freedesktop.org/releases/ Index: head/graphics/wayland/files/patch-cursor_os-compatibility.c =================================================================== --- head/graphics/wayland/files/patch-cursor_os-compatibility.c +++ head/graphics/wayland/files/patch-cursor_os-compatibility.c @@ -9,11 +9,13 @@ #include #endif -@@ -132,6 +132,9 @@ os_create_anonymous_file(off_t size) +@@ -131,6 +131,11 @@ os_create_anonymous_file(off_t size) */ fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_SEAL); } else +#elif defined(__FreeBSD__) ++/* posix_fallocate returns ENODEV before https://svnweb.freebsd.org/changeset/base/356512 */ ++#undef HAVE_POSIX_FALLOCATE + fd = shm_open(SHM_ANON, O_CREAT | O_RDWR | O_CLOEXEC, 0600); // shm_open is always CLOEXEC + if (fd < 0) #endif