diff --git a/net/ntp/files/patch-ntpd_ntpd.c b/net/ntp/files/patch-ntpd_ntpd.c index da804c897d4d..b70026785fcd 100644 --- a/net/ntp/files/patch-ntpd_ntpd.c +++ b/net/ntp/files/patch-ntpd_ntpd.c @@ -1,22 +1,22 @@ --- ntpd/ntpd.c.orig 2020-06-23 02:17:48.000000000 -0700 -+++ ntpd/ntpd.c 2022-01-18 09:48:42.075461000 -0800 ++++ ntpd/ntpd.c 2022-01-19 20:36:53.477753000 -0800 @@ -145,7 +145,9 @@ # include #endif /* LIBSECCOMP and KERN_SECCOMP */ -#ifdef __FreeBSD__ +#if defined(__FreeBSD_version) && \ + ((__FreeBSD_version > 1400000 && __FreeBSD_version < 1400038) || \ -+ (__FreeBSD_version > 1300000 && __FreeBSD_version < 1300524)) ++ __FreeBSD_version < 1300524) #include #ifndef PROC_STACKGAP_CTL /* @@ -438,7 +440,7 @@ char *argv[] ) { -# ifdef __FreeBSD__ +# if defined(__FreeBSD_version) && __FreeBSD_version < 1400037 { /* * We Must disable ASLR stack gap on FreeBSD to avoid a