Skip to content

Commit 4dcdb8c

Browse files
fix more define based issues
1 parent 3b52217 commit 4dcdb8c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/policy.h

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#define FAN_ENABLE_AUDIT 0x00000040
3838
#endif
3939
#else
40+
#define AUDIT 0x0
4041
#endif
4142

4243
typedef enum { NO_OPINION = 0, ALLOW = FAN_ALLOW, DENY = FAN_DENY,

src/rules.c

+2
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,7 @@ decision_t rule_evaluate(lnode *r, event_t *e)
652652

653653
void rules_unsupport_audit(llist *l)
654654
{
655+
#ifdef USE_AUDIT
655656
register lnode *current = l->head;
656657
int warn = 0;
657658

@@ -666,6 +667,7 @@ void rules_unsupport_audit(llist *l)
666667
"Rules with audit events are not supported by the kernel");
667668
msg(LOG_NOTICE, "Converting rules to non-audit rules");
668669
}
670+
#endif
669671
}
670672

671673
void rules_clear(llist *l)

0 commit comments

Comments
 (0)