[CRIU] [PATCH 07/13] Hide asm/bitsperlong.h from sources

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


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

diff --git a/criu/bitmap.c b/criu/bitmap.c
index 65a501e..03d8bc2 100644
--- a/criu/bitmap.c
+++ b/criu/bitmap.c
@@ -1,4 +1,4 @@
-#include "asm/bitsperlong.h"
+#include "bitsperlong.h"
 
 #define BIT_WORD(nr)		((nr) / BITS_PER_LONG)
 
diff --git a/criu/include/bitsperlong.h b/criu/include/bitsperlong.h
new file mode 100644
index 0000000..b69de22
--- /dev/null
+++ b/criu/include/bitsperlong.h
@@ -0,0 +1,4 @@
+#ifndef __CR_INC_BITSPERLONG_H__
+#define __CR_INC_BITSPERLONG_H__
+#include "asm/bitsperlong.h"
+#endif
diff --git a/criu/pie/log-simple.c b/criu/pie/log-simple.c
index 39b95b9..4220d36 100644
--- a/criu/pie/log-simple.c
+++ b/criu/pie/log-simple.c
@@ -1,7 +1,6 @@
 #include <stdarg.h>
 
-#include "asm/bitsperlong.h"
-
+#include "bitsperlong.h"
 #include "uapi/std/syscall.h"
 #include "log.h"
 
-- 
2.1.4



More information about the CRIU mailing list