container: include stdbool.h
authorHans Dedecker <dedeckeh@gmail.com>
Thu, 9 May 2019 16:01:46 +0000 (18:01 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Thu, 9 May 2019 16:23:19 +0000 (18:23 +0200)
Fixes following compile issue :

container.h:18:15: error: unknown type name 'bool'
 static inline bool is_container() {
               ^~~~
make[5]: *** [CMakeFiles/init.dir/build.make:154: CMakeFiles/init.dir/initd/zram.c.o] Error 1

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
container.h

index 7fb07683fde9836c24e41ad5c785f24cf85282a9..d33fa3266dc09e627ace4f8397796ad018d853b2 100644 (file)
@@ -13,7 +13,9 @@
 
 #ifndef __CONTAINER_H
 #define __CONTAINER_H
 
 #ifndef __CONTAINER_H
 #define __CONTAINER_H
+
 #include <stdlib.h>
 #include <stdlib.h>
+#include <stdbool.h>
 
 static inline bool is_container() {
        return !!getenv("container");
 
 static inline bool is_container() {
        return !!getenv("container");