aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2019-09-19 20:16:51 +0000
committerCy Schubert <cy@FreeBSD.org>2019-09-19 20:16:51 +0000
commit20674acb7053a45f259e66f3b57076b96a4889df (patch)
tree35b25f446c6173acd6045c010b1b0a5313854fe1 /contrib
parent5f6bb72e7fdcdd50d18d98cb8ad6bd00fc240a5f (diff)
Notes
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ntp/ntpd/ntpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/ntp/ntpd/ntpd.c b/contrib/ntp/ntpd/ntpd.c
index 2b14431dc7b4..bcfca27a5356 100644
--- a/contrib/ntp/ntpd/ntpd.c
+++ b/contrib/ntp/ntpd/ntpd.c
@@ -999,7 +999,7 @@ ntpdmain(
# if defined(HAVE_MLOCKALL)
# ifdef HAVE_SETRLIMIT
ntp_rlimit(RLIMIT_STACK, DFLT_RLIMIT_STACK * 4096, 4096, "4k");
-# ifdef RLIMIT_MEMLOCK
+# if defined(RLIMIT_MEMLOCK) && defined(DFLT_RLIMIT_MEMLOCK) && DFLT_RLIMIT_MEMLOCK != -1
/*
* The default RLIMIT_MEMLOCK is very low on Linux systems.
* Unless we increase this limit malloc calls are likely to