]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
configure: Fix check for Solaris audit API to work with gcc 14
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Tue, 8 Oct 2024 00:49:17 +0000 (17:49 -0700)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Tue, 8 Oct 2024 00:49:17 +0000 (17:49 -0700)
Need to declare a variable type to avoid gcc 14 error:

configure:22502: checking for ADT API
conftest.c:107:1: warning: data definition has no type or storage class
  107 | adt_user_context = ADT_USER;
      | ^~~~~~~~~~~~~~~~
conftest.c:107:1: error: type defaults to 'int' in declaration of
 'adt_user_context' [-Wimplicit-int]

Fixes: ab1eb1fd ("Bug 15740: Solaris/ADT auditing support (simon zheng)")
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
configure.ac

index ecbdf2a3c6867b20fae4aa4eef99b730114e9004..d258f8cb6462bcd5ddc9e178da61d28025d24ecc 100644 (file)
@@ -1042,7 +1042,7 @@ AC_SUBST([SELINUX_LIBS])
 AC_MSG_CHECKING(for ADT API)
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 #include <bsm/adt.h>
-adt_user_context = ADT_USER;
+int adt_user_context = ADT_USER;
 ]], [[]])], [ check_adt_audit=yes ], [ check_adt_audit=no ])
 
 if test ${check_adt_audit} = yes