[CRIU] [PATCH 1/6] log: Include stdbool.h

Dmitry Safonov dima at arista.com
Sun Nov 24 02:46:22 MSK 2019


criu/include/log.h:37:10: error: unknown type name ‘bool’
   37 |   static bool __printed;     \
      |

We could use int instead, but I believe it's worth to include stdbool.h.

Signed-off-by: Dmitry Safonov <dima at arista.com>
---
 criu/include/log.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/criu/include/log.h b/criu/include/log.h
index 15787b09fb26..ea6225ce5998 100644
--- a/criu/include/log.h
+++ b/criu/include/log.h
@@ -5,9 +5,10 @@
 
 #ifndef CR_NOGLIBC
 
-#include <string.h>
 #include <errno.h>
 #include <stdarg.h>
+#include <stdbool.h>
+#include <string.h>
 
 extern void vprint_on_level(unsigned int loglevel, const char *format,
 		va_list params);
-- 
2.24.0



More information about the CRIU mailing list