scons: Test for random_r()

Suggested-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
Matt Turner 2019-07-29 15:31:34 -07:00
parent c96407f37e
commit 597bddad47
1 changed files with 3 additions and 0 deletions

View File

@ -368,6 +368,9 @@ def generate(env):
if check_functions(env, ['strtod_l', 'strtof_l']):
cppdefines += ['HAVE_STRTOD_L']
if check_functions(env, 'random_r'):
cppdefines += ['HAVE_RANDOM_R']
if check_functions(env, ['timespec_get']):
cppdefines += ['HAVE_TIMESPEC_GET']