diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c
index 12996ecbd0..72a4d078e4 100644
--- a/src/security/virt-aa-helper.c
+++ b/src/security/virt-aa-helper.c
@@ -19,6 +19,7 @@
 #include <unistd.h>
 #include <errno.h>
 #include <sys/types.h>
+#include <sys/stat.h>
 #include <fcntl.h>
 #include <getopt.h>
 #include <stdbool.h>