mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
meson: Fix oss4 header checks
Otherwise, oss4 ends up getting built when force-disabled.
This commit is contained in:
parent
1c645f83f6
commit
248342f942
1 changed files with 4 additions and 5 deletions
|
@ -1,12 +1,11 @@
|
|||
have_oss4 = true
|
||||
have_oss4 = false
|
||||
oss4_option = get_option('oss4')
|
||||
if not oss4_option.disabled()
|
||||
have_oss4 = true
|
||||
message('Checking headers needed for Open Sound System 4 plugin...')
|
||||
foreach hdr : ['fcntl.h', 'sys/ioctl.h', 'sys/stat.h', 'sys/types.h']
|
||||
if have_oss4
|
||||
if not cc.has_header(hdr)
|
||||
have_oss4 = false
|
||||
endif
|
||||
if have_oss4 and not cc.has_header(hdr)
|
||||
have_oss4 = false
|
||||
endif
|
||||
endforeach
|
||||
|
||||
|
|
Loading…
Reference in a new issue