[CRIU] [PATCH 11/13] Hide asm/dump.h from sources
Pavel Emelyanov
xemul at virtuozzo.com
Thu Oct 20 13:41:55 PDT 2016
Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
---
criu/cr-dump.c | 3 +--
criu/include/dump.h | 4 ++++
criu/parasite-syscall.c | 2 +-
criu/pstree.c | 2 +-
4 files changed, 7 insertions(+), 4 deletions(-)
create mode 100644 criu/include/dump.h
diff --git a/criu/cr-dump.c b/criu/cr-dump.c
index 6c8716d..e3f6b5e 100644
--- a/criu/cr-dump.c
+++ b/criu/cr-dump.c
@@ -81,8 +81,7 @@
#include "seccomp.h"
#include "seize.h"
#include "fault-injection.h"
-
-#include "asm/dump.h"
+#include "dump.h"
static char loc_buf[PAGE_SIZE];
diff --git a/criu/include/dump.h b/criu/include/dump.h
new file mode 100644
index 0000000..d9a4b61
--- /dev/null
+++ b/criu/include/dump.h
@@ -0,0 +1,4 @@
+#ifndef __CR_INC_DUMP_H__
+#define __CR_INC_DUMP_H__
+#include "asm/dump.h"
+#endif
diff --git a/criu/parasite-syscall.c b/criu/parasite-syscall.c
index 3d29a11..6f30580 100644
--- a/criu/parasite-syscall.c
+++ b/criu/parasite-syscall.c
@@ -36,7 +36,7 @@
#include <stdlib.h>
#include <elf.h>
-#include "asm/dump.h"
+#include "dump.h"
#include "restorer.h"
#include "pie/pie-relocs.h"
diff --git a/criu/pstree.c b/criu/pstree.c
index dac967a..890809e 100644
--- a/criu/pstree.c
+++ b/criu/pstree.c
@@ -12,7 +12,7 @@
#include "files.h"
#include "tty.h"
#include "mount.h"
-#include "asm/dump.h"
+#include "dump.h"
#include "protobuf.h"
#include "images/pstree.pb-c.h"
--
2.1.4
More information about the CRIU
mailing list