From: Vinson Lee Date: Wed, 31 Jul 2019 02:24:16 +0000 (-0700) Subject: scons: Fix random_r check. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=412e1b51fee9bc8bbb6ade21687cd02a65a62bb3;p=mesa.git scons: Fix random_r check. Fixes: 597bddad47e8 ("scons: Test for random_r()") Signed-off-by: Vinson Lee Reviewed-by: Eric Engestrom Reviewed-by: Matt Turner --- diff --git a/scons/gallium.py b/scons/gallium.py index f208c638a0d..5834f6e2194 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -369,7 +369,7 @@ def generate(env): if check_functions(env, ['strtod_l', 'strtof_l']): cppdefines += ['HAVE_STRTOD_L'] - if check_functions(env, 'random_r'): + if check_functions(env, ['random_r']): cppdefines += ['HAVE_RANDOM_R'] if check_functions(env, ['timespec_get']):