projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c96407f
)
scons: Test for random_r()
author
Matt Turner
<mattst88@gmail.com>
Mon, 29 Jul 2019 22:31:34 +0000
(15:31 -0700)
committer
Matt 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
patch
|
blob
|
history
diff --git
a/scons/gallium.py
b/scons/gallium.py
index
2772761
..
6d5b2fc
100755
(executable)
--- 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']