meson: Fix check for Solaris audit API to work with gcc 14

Need to declare a variable type to avoid gcc 14 error:

error: type defaults to 'int' in declaration of 'adt_user_context'
 [-Wimplicit-int]

Fixes: cd2e3826 ("Add Meson build system")
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
Alan Coopersmith 2024-10-07 17:13:53 -07:00
parent 57f885bd4c
commit 274c16589f

View file

@ -568,7 +568,7 @@ endif
adt_api_check = cc.compiles('''
#include <bsm/adt.h>
int main() {
adt_user_context = ADT_USER;
int adt_user_context = ADT_USER;
return 0;
}
''', args: compile_args_c)