diff options
Diffstat (limited to 'scons')
-rwxr-xr-x | scons/gallium.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py index 21197c8d0d1..79b9406a975 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -378,6 +378,14 @@ def generate(env): if check_header(env, 'sys/shm.h'): cppdefines += ['HAVE_SYS_SHM_H'] + #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. + if check_header(env, 'sys/mkdev.h'): + cppdefines += ['MAJOR_IN_MKDEV'] + if check_header(env, 'sys/sysmacros.h'): + cppdefines += ['MAJOR_IN_SYSMACROS'] + if platform == 'windows': cppdefines += [ 'WIN32', |