[CRIU] [PATCH 12/13] Hide asm/restore.h from sources

Pavel Emelyanov xemul at virtuozzo.com
Thu Oct 20 13:42:12 PDT 2016


Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
---
 criu/cr-restore.c      | 2 +-
 criu/include/restore.h | 4 ++++
 criu/sigframe.c        | 4 +---
 3 files changed, 6 insertions(+), 4 deletions(-)
 create mode 100644 criu/include/restore.h

diff --git a/criu/cr-restore.c b/criu/cr-restore.c
index fa09709..d4bacc4 100644
--- a/criu/cr-restore.c
+++ b/criu/cr-restore.c
@@ -88,7 +88,7 @@
 #include "images/pagemap.pb-c.h"
 #include "images/siginfo.pb-c.h"
 
-#include "asm/restore.h"
+#include "restore.h"
 
 #include "cr-errno.h"
 
diff --git a/criu/include/restore.h b/criu/include/restore.h
new file mode 100644
index 0000000..6d878b4
--- /dev/null
+++ b/criu/include/restore.h
@@ -0,0 +1,4 @@
+#ifndef __CR_INC_RESTORE_H__
+#define __CR_INC_RESTORE_H__
+#include "asm/restore.h"
+#endif
diff --git a/criu/sigframe.c b/criu/sigframe.c
index 68fb8fc..b2dd85a 100644
--- a/criu/sigframe.c
+++ b/criu/sigframe.c
@@ -1,8 +1,6 @@
 #include <unistd.h>
 #include <string.h>
-
-#include "asm/restore.h"
-
+#include "restore.h"
 #include "images/core.pb-c.h"
 
 #ifndef setup_sas
-- 
2.1.4



More information about the CRIU mailing list