From 928a746f7ebd83812ddb152a5c0fb11a0a294c93 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sun, 21 Mar 2021 11:56:22 +0000 Subject: [PATCH] basic/socket-util: enable cr_pid on FreeBSD >= 12.3 http://github.com/freebsd/freebsd-src/commit/925f44f33862908f9a2e72520a17af148c7d0db5 http://github.com/freebsd/freebsd-src/commit/2b61bda2c75f30f6eadd18fb891fd885e4c8d19d --- src/basic/socket-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/socket-util.c b/src/basic/socket-util.c index 16f71f9..ba438bc 100644 --- a/src/basic/socket-util.c +++ b/src/basic/socket-util.c @@ -41,7 +41,7 @@ int getpeercred(int fd, struct ucred *ucred) { } struct ucred u = { -#if __FreeBSD_version >= 1300030 +#if __FreeBSD_version >= 1300030 || (__FreeBSD_version >= 1202506 && __FreeBSD_version < 1300000) .pid = cred.cr_pid, #else .pid = -1, -- 2.45.2