]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
audit-type: include alloc-util.h for newa() (#40389)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 19 Jan 2026 15:31:39 +0000 (00:31 +0900)
committerGitHub <noreply@github.com>
Mon, 19 Jan 2026 15:31:39 +0000 (16:31 +0100)
The macro audit_type_name_alloca() needs newa() which is defined in
alloc-util.h.

src/libsystemd/sd-journal/audit-type.h

index a92567d184ce1af5049e6a1160b029c3ee14f6bd..fa43233c692e8b440e59146ca4e37041cac9b48d 100644 (file)
@@ -5,6 +5,8 @@
 
 #include "sd-forward.h"
 
+#include "alloc-util.h" /* IWYU pragma: keep */
+
 DECLARE_STRING_TABLE_LOOKUP(audit_type, int);
 
 /* This is inspired by DNS TYPEnnn formatting */