[CRIU] [PATCH] vdso: Diet include/vdso.h

Cyrill Gorcunov gorcunov at openvz.org
Thu Jun 13 08:01:46 EDT 2013


In commit 2f5df09da587d3dd4002b25fccc39bf1255b1d0a
we included asm/type.h for bool definition. This
is fine in terms of CRIU but makes cpt2 converter
to carry the whole asm/type.h, sometimes causing
error due to confilicting definitions.

So lets be simplier and include <stdbool.h> instead.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 include/vdso.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/vdso.h b/include/vdso.h
index 015f564..3f2f01f 100644
--- a/include/vdso.h
+++ b/include/vdso.h
@@ -2,10 +2,10 @@
 #define __CR_VDSO_H__
 
 #include <sys/mman.h>
+#include <stdbool.h>
 
 #include "asm/vdso.h"
 #include "asm/int.h"
-#include "asm/types.h"
 
 #define VDSO_PROT		(PROT_READ | PROT_EXEC)
 
-- 
1.8.1.4



More information about the CRIU mailing list