Index: graphics/wayland/files/patch-src_wayland-server.c =================================================================== --- graphics/wayland/files/patch-src_wayland-server.c +++ graphics/wayland/files/patch-src_wayland-server.c @@ -45,7 +45,7 @@ { +#ifdef HAVE_SYS_UCRED_H + /* FreeBSD */ -+#if defined(__FreeBSD__) && __FreeBSD_version >= 1300030 ++#if defined(__FreeBSD__) && (__FreeBSD_version >= 1300030 || (__FreeBSD_version >= 1202506 && __FreeBSD_version < 1300000)) + wl_log("%s (pid %u)\n", reason, client->xucred.cr_pid); +#else + wl_log("%s\n", reason); @@ -85,8 +85,8 @@ +#ifdef HAVE_SYS_UCRED_H + /* DragonFly or FreeBSD */ if (pid) -+#if defined(__FreeBSD__) && __FreeBSD_version >= 1300030 -+ /* Since https://cgit.freebsd.org/src/commit/?id=c5afec6e895a */ ++#if defined(__FreeBSD__) && (__FreeBSD_version >= 1300030 || (__FreeBSD_version >= 1202506 && __FreeBSD_version < 1300000)) ++ /* Since https://cgit.freebsd.org/src/commit/?id=925f44f33862 */ + *pid = client->xucred.cr_pid; +#else + *pid = 0;