ports/security/ipsec-tools/files/patch-ipsec_get_policylen.c
Eugene Grosbein ce0249b815
security/ipsec-tools: fix build for FreeBSD 15
FreeBSD 15.0 got some incompatible changes to the header
/usr/include/netipsec/ipsec.h breaking build of this legacy code
due to added "const".

Fix it providing some patches that do not change the behavior.
While here, suppress some warnings that pollute build log
using modern Clang.

This fixes build, so PORTREVISION not bumped.
2025-02-09 16:04:28 +07:00

11 lines
312 B
C

--- src/libipsec/ipsec_get_policylen.c.orig 2007-07-18 12:07:50.000000000 +0000
+++ src/libipsec/ipsec_get_policylen.c 2025-02-09 07:40:22.545915000 +0000
@@ -48,7 +48,7 @@
int
ipsec_get_policylen(policy)
- ipsec_policy_t policy;
+ c_ipsec_policy_t policy;
{
return policy ? PFKEY_EXTLEN(policy) : -1;
}