diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2015-07-27 16:59:19 -0400 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2015-08-27 16:59:37 -0400 |
commit | e8f3ef4844210a474f24cb5038403917d518f554 (patch) | |
tree | e988e833005b259caa10518de6f3ed3ab2566e9f /SConstruct | |
parent | eed4c7978289968e54ff4510c5bbfab808a21fb0 (diff) | |
download | mongo-e8f3ef4844210a474f24cb5038403917d518f554.tar.gz |
SERVER-19444 Add polyfill for strnlen
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 3 |
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 |