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.
13 lines
433 B
C
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);
|
|
}
|