summaryrefslogtreecommitdiffstats
path: root/scons
diff options
context:
space:
mode:
Diffstat (limited to 'scons')
-rwxr-xr-xscons/gallium.py3
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.