scons: Fix random_r check.
authorVinson Lee <vlee@freedesktop.org>
Wed, 31 Jul 2019 02:24:16 +0000 (19:24 -0700)
committerVinson Lee <vinsonl@gmail.com>
Wed, 31 Jul 2019 18:23:55 +0000 (18:23 +0000)
Fixes: 597bddad47e8 ("scons: Test for random_r()")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Matt Turner <mattst88@gmail.com>
scons/gallium.py

index f208c638a0dcccf8d83c9004e56b3d2a1fb3d206..5834f6e2194ef4013654b9ccef1074b82cacda20 100755 (executable)
@@ -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']):