From: Matt Turner Date: Mon, 29 Jul 2019 22:31:34 +0000 (-0700) Subject: scons: Test for random_r() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=597bddad47e831474a33cde054c40bbd2cbc0600;p=mesa.git scons: Test for random_r() Suggested-by: Eric Engestrom --- diff --git a/scons/gallium.py b/scons/gallium.py index 27727612d14..6d5b2fccc17 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -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']