summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2015-07-27 16:59:19 -0400
committerJonathan Reams <jbreams@mongodb.com>2015-08-27 16:59:37 -0400
commite8f3ef4844210a474f24cb5038403917d518f554 (patch)
treee988e833005b259caa10518de6f3ed3ab2566e9f /SConstruct
parenteed4c7978289968e54ff4510c5bbfab808a21fb0 (diff)
downloadmongo-e8f3ef4844210a474f24cb5038403917d518f554.tar.gz
SERVER-19444 Add polyfill for strnlen
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct3
1 files changed, 3 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 1381cc316b9..29c3ab474ea 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1841,6 +1841,9 @@ def doConfigure(myenv):
if conf.CheckMemset_s():
conf.env.SetConfigHeaderDefine("MONGO_CONFIG_HAVE_MEMSET_S")
+ if conf.CheckFunc('strnlen'):
+ conf.env.SetConfigHeaderDefine("MONGO_CONFIG_HAVE_STRNLEN")
+
conf.Finish()
# If we are using libstdc++, check to see if we are using a libstdc++ that is older than