]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
basic/missing_audit: add explanatory comment 31844/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 19 Mar 2024 09:58:59 +0000 (10:58 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 20 Mar 2024 11:26:24 +0000 (12:26 +0100)
It seems we need to check for the header file because it's not available in
some fuzzer builds.

src/basic/missing_audit.h

index 96248bc9d8cc7cbfff3e1c62713c1dc9e8ccd76b..3f72acf02f628ab08cc6d7273cffeda41b67f900 100644 (file)
@@ -25,6 +25,8 @@ assert_cc(AUDIT_SERVICE_STOP == 1131);
 assert_cc(MAX_AUDIT_MESSAGE_LENGTH == 8970);
 #endif
 
+/* Note: we check for AUDIT_NLGRP_MAX because it's a define, but we actually
+ * need AUDIT_NLGRP_READLOG which is an enum. */
 #ifndef AUDIT_NLGRP_MAX
 #  define AUDIT_NLGRP_READLOG 1
 #else