[libvirt] [PATCH v2 01/19] virseclabel.h: Include stdbool.h

Michal Privoznik mprivozn at redhat.com
Thu Nov 3 12:18:51 UTC 2016


The internal representation of security labels contains some
bools (e.g. @relabel, @implicit). But the stdbool.h file is not
included anywhere in the header file, therefore if somebody just
includes "virseclabel.h" they also need to include <stdbool.h>.
That's not right as it should be virseclabel.h who drags in all
the dependencies.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 src/util/virseclabel.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/util/virseclabel.h b/src/util/virseclabel.h
index 94c4dfc..558d4eb 100644
--- a/src/util/virseclabel.h
+++ b/src/util/virseclabel.h
@@ -22,6 +22,8 @@
 #ifndef __SECLABEL_H
 # define __SECLABEL_H
 
+# include <stdbool.h>
+
 typedef enum {
     VIR_DOMAIN_SECLABEL_DEFAULT,
     VIR_DOMAIN_SECLABEL_NONE,
-- 
2.8.4




More information about the libvir-list mailing list