[CRIU] [PATCH] kerndat: include config.h before using CONFIG_* contants
Andrei Vagin
avagin at openvz.org
Tue Jun 27 06:50:43 MSK 2017
From: Andrei Vagin <avagin at virtuozzo.com>
Otherwise someone can include kerndat.h before config.h
and get another kerndat structure. For example, proc_parse
doesn't include config.h and Cyrill met this problem.
Cc: Dmitry Safonov <dsafonov at virtuozzo.com>
Cc: Cyrill Gorcunov <gorcunov at openvz.org>
Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
criu/include/kerndat.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/criu/include/kerndat.h b/criu/include/kerndat.h
index 2035f79..8eaa06d 100644
--- a/criu/include/kerndat.h
+++ b/criu/include/kerndat.h
@@ -3,6 +3,7 @@
#include <stdbool.h>
#include "int.h"
+#include "config.h"
#ifdef CONFIG_VDSO
#include "util-vdso.h"
#endif
--
2.9.4
More information about the CRIU
mailing list