mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 17:46:38 -04:00
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.
11 lines
312 B
C
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;
|
|
}
|