diff options
author | Matt Turner <mattst88@gmail.com> | 2019-07-29 15:31:34 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2019-07-30 11:49:09 -0700 |
commit | 597bddad47e831474a33cde054c40bbd2cbc0600 (patch) | |
tree | 610195ac8dea567897679d9fa1e2292bdddf87a0 /scons | |
parent | c96407f37ef8325db11ae5fdb16e372cbc663bf4 (diff) | |
download | mesa-597bddad47e831474a33cde054c40bbd2cbc0600.tar.gz mesa-597bddad47e831474a33cde054c40bbd2cbc0600.tar.bz2 mesa-597bddad47e831474a33cde054c40bbd2cbc0600.zip |
scons: Test for random_r()
Suggested-by: Eric Engestrom <eric.engestrom@intel.com>
Diffstat (limited to 'scons')
-rwxr-xr-x | scons/gallium.py | 3 |
1 files changed, 3 insertions, 0 deletions
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'] |