net/ntp: Use __FreeBSD_version < 1400038

__FreeBSD_version < 1400038 is more appropriate as it follows the
commit to resolve setrlimit(2) segfaults.

MFH:		2021Q4
This commit is contained in:
Cy Schubert 2021-10-18 09:43:40 -07:00
parent bd31ff9102
commit f424bcafb8
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
PORTNAME= ntp PORTNAME= ntp
PORTVERSION= 4.2.8p15 PORTVERSION= 4.2.8p15
PORTREVISION= 2 PORTREVISION= 3
CATEGORIES= net CATEGORIES= net
MASTER_SITES= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ \ MASTER_SITES= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ \
http://archive.ntp.org/ntp4/ntp-4.2/ \ http://archive.ntp.org/ntp4/ntp-4.2/ \

View file

@ -5,7 +5,7 @@
#endif /* LIBSECCOMP and KERN_SECCOMP */ #endif /* LIBSECCOMP and KERN_SECCOMP */
-#ifdef __FreeBSD__ -#ifdef __FreeBSD__
+#if defined(__FreeBSD_version) && __FreeBSD_version < 1400037 +#if defined(__FreeBSD_version) && __FreeBSD_version < 1400038
#include <sys/procctl.h> #include <sys/procctl.h>
#ifndef PROC_STACKGAP_CTL #ifndef PROC_STACKGAP_CTL
/* /*