scons: Test for random_r()
authorMatt Turner <mattst88@gmail.com>
Mon, 29 Jul 2019 22:31:34 +0000 (15:31 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 30 Jul 2019 18:49:09 +0000 (11:49 -0700)
Suggested-by: Eric Engestrom <eric.engestrom@intel.com>
scons/gallium.py

index 27727612d1415c2caf445c284b3898acb466053f..6d5b2fccc17319b7eddf9687926ee273be0d5a2a 100755 (executable)
@@ -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']