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

12 lines
332 B
C

--- src/libipsec/policy_parse.c.orig 2012-08-23 11:12:33.000000000 +0000
+++ src/libipsec/policy_parse.c 2025-02-09 07:02:38.738230000 +0000
@@ -2262,7 +2262,7 @@ ipsec_set_policy(msg, msglen)
ipsec_policy_t
ipsec_set_policy(msg, msglen)
- __ipsec_const char *msg;
+ __ipsec_nconst char *msg;
int msglen;
{
caddr_t policy;