From 248342f942719426c3b5f4277662528368e34719 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 1 Aug 2018 03:18:58 +0530 Subject: [PATCH] meson: Fix oss4 header checks Otherwise, oss4 ends up getting built when force-disabled. --- sys/oss4/meson.build | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sys/oss4/meson.build b/sys/oss4/meson.build index c33bfbd..58839ae 100644 --- a/sys/oss4/meson.build +++ b/sys/oss4/meson.build @@ -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 -- 2.7.4