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

Submitted by Pavel Emelianov on Oct. 20, 2016, 8:42 p.m.

Details

Message ID 58092C24.3090907@virtuozzo.com
State Accepted
Series "criu: Remove asm/ includes from non-arch sources"
Commit 65f4ecd224df0c6b98263b94c7c654131cf7d1a7
Headers show

Commit Message

Pavel Emelianov Oct. 20, 2016, 8:42 p.m.
Signed-off-by: Pavel Emelyanov <xemul@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

Patch hide | download patch | download mbox

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