ports/security/ipsec-tools/files/patch-ipsec_dump_policy.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

13 lines
433 B
C

--- src/libipsec/ipsec_dump_policy.c.orig 2010-12-03 21:01:11.000000000 +0600
+++ src/libipsec/ipsec_dump_policy.c 2025-02-09 15:01:50.443167000 +0700
@@ -77,8 +77,8 @@ ipsec_dump_policy(policy, delimiter)
*/
char *
ipsec_dump_policy(policy, delimiter)
- ipsec_policy_t policy;
- __ipsec_const char *delimiter;
+ c_ipsec_policy_t policy;
+ __ipsec_nconst char *delimiter;
{
return ipsec_dump_policy1(policy, delimiter, 0);
}