[CRIU] [PATCH 7/7] crtools: don't include cr-show.h in crtools.h

Andrey Vagin avagin at openvz.org
Wed Nov 6 02:34:33 PST 2013


Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 include/cr-show.h | 1 +
 include/crtools.h | 2 --
 namespaces.c      | 1 +
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/cr-show.h b/include/cr-show.h
index 5a36693..a370fc2 100644
--- a/include/cr-show.h
+++ b/include/cr-show.h
@@ -1,6 +1,7 @@
 #ifndef __CR_SHOW_H__
 #define __CR_SHOW_H__
 #include <stdbool.h>
+#include "asm/types.h"
 
 struct show_image_info {
 	u32	magic;
diff --git a/include/crtools.h b/include/crtools.h
index 433809f..8a3e20c 100644
--- a/include/crtools.h
+++ b/include/crtools.h
@@ -5,8 +5,6 @@
 
 #include "list.h"
 #include "asm/types.h"
-#include "list.h"
-#include "cr-show.h"
 #include "servicefd.h"
 
 #include "protobuf/vma.pb-c.h"
diff --git a/namespaces.c b/namespaces.c
index ee88e31..a9eb527 100644
--- a/namespaces.c
+++ b/namespaces.c
@@ -2,6 +2,7 @@
 #include <fcntl.h>
 #include <sys/wait.h>
 #include <stdlib.h>
+#include "cr-show.h"
 #include "util.h"
 #include "fdset.h"
 #include "syscall.h"
-- 
1.8.3.1



More information about the CRIU mailing list