diff options
| author | Hans Dedecker | 2019-05-09 16:01:46 +0000 |
|---|---|---|
| committer | Hans Dedecker | 2019-05-09 16:23:19 +0000 |
| commit | 1361b970dddb976e667ca58de8659bb8e5fc5d51 (patch) | |
| tree | 305410091bf19de6dc00284212a5ff69368daab0 | |
| parent | 9b354394e2ba818880ba8c65000c417ef1c560a7 (diff) | |
| download | procd-1361b970dddb976e667ca58de8659bb8e5fc5d51.tar.gz | |
container: include stdbool.h
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>
| -rw-r--r-- | container.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/container.h b/container.h index 7fb0768..d33fa32 100644 --- a/container.h +++ b/container.h @@ -13,7 +13,9 @@ #ifndef __CONTAINER_H #define __CONTAINER_H + #include <stdlib.h> +#include <stdbool.h> static inline bool is_container() { return !!getenv("container"); |