diff options
author | Nicolai Hähnle <[email protected]> | 2017-11-15 12:41:58 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-11-16 06:45:35 +0100 |
commit | 2e3d0dd6c8f405f27d68b1ac35e928233bf8b89c (patch) | |
tree | 547b3b7677d9d5879504885c45eaefe498691280 /scons | |
parent | a8bdf0e0c4c792634551c14e2dd02d72b75a8db5 (diff) |
threads,configure.ac,meson.build: define and use HAVE_TIMESPEC_GET
Tested with Travis and Appveyor.
v2: add HAVE_TIMESPEC_GET for non-Windows Scons builds
v3: use check_functions in Scons (Eric)
Cc: Rob Herring <[email protected]>
Cc: Alexander von Gluck IV <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103674
Fixes: f1a364878431 ("threads: update for late C11 changes")
Reviewed-by: Eric Engestrom <[email protected]>
Reviewed-by: Dylan Baker <[email protected]>
Reviewed-by: Jon Turney <[email protected]> (v2)
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 94022df1808..ef3b2ee81ae 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -355,6 +355,9 @@ def generate(env): if check_functions(env, ['strtod_l', 'strtof_l']): cppdefines += ['HAVE_STRTOD_L'] + if check_functions(env, ['timespec_get']): + cppdefines += ['HAVE_TIMESPEC_GET'] + if platform == 'windows': cppdefines += [ 'WIN32', |