[1/6] log: Include stdbool.h

Submitted by Dmitry Safonov on Nov. 23, 2019, 11:46 p.m.

Details

Message ID 20191123234627.483372-2-dima@arista.com
State New
Series "criu: dlopen() optional libraries"
Headers show

Commit Message

Dmitry Safonov Nov. 23, 2019, 11:46 p.m.
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@arista.com>
---
 criu/include/log.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

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);