projects
/
oweals
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b35439
)
container: include stdbool.h
author
Hans Dedecker
<dedeckeh@gmail.com>
Thu, 9 May 2019 16:01:46 +0000
(18:01 +0200)
committer
Hans 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
patch
|
blob
|
history
diff --git
a/container.h
b/container.h
index 7fb07683fde9836c24e41ad5c785f24cf85282a9..d33fa3266dc09e627ace4f8397796ad018d853b2 100644
(file)
--- 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");