diff options
author | Alan Coopersmith <[email protected]> | 2019-10-07 18:46:41 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2019-10-17 09:08:50 -0700 |
commit | 9b49a4ea12f6c50bd10024312a672783d11a4acd (patch) | |
tree | 744527998896a307c3abcfd720258644e6aa3f45 | |
parent | 55a04df479daaf55d22181e43be8c81a6aa57235 (diff) |
meson: recognize "sunos" as the system name for Solaris
Signed-off-by: Alan Coopersmith <[email protected]>
Acked-by: Eric Engestrom <[email protected]>
Reviewed-by: Dylan Baker <[email protected]>
(cherry picked from commit d8a9420f6f1a9eabe6dffe19779de9ec8fba9ab0)
Minor conflicts resolved by Dylan Baker
-rw-r--r-- | meson.build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meson.build b/meson.build index bcb8fcf8348..d58415270d0 100644 --- a/meson.build +++ b/meson.build @@ -117,7 +117,7 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2 # Only build shared_glapi if at least one OpenGL API is enabled with_shared_glapi = get_option('shared-glapi') and with_any_opengl -system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 'dragonfly', 'linux'].contains(host_machine.system()) +system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 'dragonfly', 'linux', 'sunos'].contains(host_machine.system()) dri_drivers = get_option('dri-drivers') if dri_drivers.contains('auto') @@ -858,6 +858,8 @@ endif # TODO: this is very incomplete if ['linux', 'cygwin', 'gnu', 'gnu/kfreebsd'].contains(host_machine.system()) pre_args += '-D_GNU_SOURCE' +elif host_machine.system() == 'sunos' + pre_args += '-D__EXTENSIONS__' endif # Check for generic C arguments |