Mesa (radv-wait-query-fix): scons: Test for random_r()

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jul 30 19:21:51 UTC 2019


Module: Mesa
Branch: radv-wait-query-fix
Commit: 597bddad47e831474a33cde054c40bbd2cbc0600
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=597bddad47e831474a33cde054c40bbd2cbc0600

Author: Matt Turner <mattst88 at gmail.com>
Date:   Mon Jul 29 15:31:34 2019 -0700

scons: Test for random_r()

Suggested-by: Eric Engestrom <eric.engestrom at intel.com>

---

 scons/gallium.py | 3 +++
 1 file changed, 3 insertions(+)

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']
 




More information about the mesa-commit mailing list