mirror of
https://git.freebsd.org/ports.git
synced 2025-06-26 07:00:31 -04:00
__FreeBSD_version < 1400038 is more appropriate as it follows the commit to resolve setrlimit(2) segfaults. MFH: 2021Q4
20 lines
536 B
C
20 lines
536 B
C
--- ntpd/ntpd.c.orig 2020-06-23 02:17:48.000000000 -0700
|
|
+++ ntpd/ntpd.c 2021-10-16 07:59:32.497688000 -0700
|
|
@@ -145,7 +145,7 @@
|
|
# include <seccomp.h>
|
|
#endif /* LIBSECCOMP and KERN_SECCOMP */
|
|
|
|
-#ifdef __FreeBSD__
|
|
+#if defined(__FreeBSD_version) && __FreeBSD_version < 1400038
|
|
#include <sys/procctl.h>
|
|
#ifndef PROC_STACKGAP_CTL
|
|
/*
|
|
@@ -438,7 +438,7 @@
|
|
char *argv[]
|
|
)
|
|
{
|
|
-# ifdef __FreeBSD__
|
|
+# if defined(__FreeBSD_version) && __FreeBSD_version < 1400037
|
|
{
|
|
/*
|
|
* We Must disable ASLR stack gap on FreeBSD to avoid a
|