diff options
author | Eric Engestrom <eric.engestrom@intel.com> | 2019-11-05 00:13:27 +0000 |
---|---|---|
committer | Eric Engestrom <eric.engestrom@intel.com> | 2019-11-05 22:38:04 +0000 |
commit | 73cc2fec10574816ff968b21183bd62e77517b66 (patch) | |
tree | a48d502a1cec0fd7e0e41bcaa7590f9103c2a151 /scons | |
parent | 66dd53584e223f1e83e24349f26c7d9a4812faa3 (diff) |
mesa/imports: let the build system detect strtok_r()
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2013
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Tested-by: Prodea Alexandru-Liviu <liviuprodea@yahoo.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.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 b216304170f..c0f6f6c91ca 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -381,6 +381,9 @@ def generate(env): if check_header(env, 'sys/shm.h'): cppdefines += ['HAVE_SYS_SHM_H'] + if check_functions(env, ['strtok_r']): + cppdefines += ['HAVE_STRTOK_R'] + #FIXME: we should really be checking for the major()/minor() # functions/macros in these headers, but check_functions()'s # SConf.CheckFunc() doesn't seem to support macros. |