HEX
Server: Apache/2.4.41 (FreeBSD) OpenSSL/1.0.2s mod_fcgid/2.3.9
System: FreeBSD salazo 12.0-RELEASE-p1303-ZFS hostBSD 12.0-RELEASE-p1303-ZFS DMR amd64
User: admin (1000)
PHP: 7.4.3
Disabled: NONE
Upload Files
File: /usr/ports/devel/fbthrift/files/patch-thrift_lib_cpp2_server_Cpp2ConnContext.cpp
--- thrift/lib/cpp2/server/Cpp2ConnContext.cpp.orig	2020-09-10 00:42:26 UTC
+++ thrift/lib/cpp2/server/Cpp2ConnContext.cpp
@@ -51,7 +51,7 @@ Cpp2ConnContext::PeerCred Cpp2ConnContext::PeerCred::q
   } else {
     return PeerCred{cred.pid, cred.uid, cred.gid};
   }
-#elif defined(LOCAL_PEERCRED) // macOS
+#elif defined(LOCAL_PEERCRED) && defined(LOCAL_PEEREPID) // macOS
   struct xucred cred = {};
   pid_t epid = 0;
   socklen_t len;