[CRIU] [PATCH 3/4] proc: Add missing includes into proc_parse.h
Cyrill Gorcunov
gorcunov at openvz.org
Thu Apr 5 07:43:47 EDT 2012
Since proc_parse.h declares functions which have
list_head as arguments, it should include list.h
and basic types.
Otherwise if included into the files without list support
the compilation might fail as
|
| In file included from cr-check.c:5:
| ./include/proc_parse.h:83: error: expected declaration specifiers or ‘...’ before ‘bool’
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
include/proc_parse.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/proc_parse.h b/include/proc_parse.h
index 383526d..14608f7 100644
--- a/include/proc_parse.h
+++ b/include/proc_parse.h
@@ -1,6 +1,11 @@
#ifndef PROC_PARSE_H__
#define PROC_PARSE_H__
+#include <sys/types.h>
+#include "types.h"
+
+#include "list.h"
+
#define PROC_TASK_COMM_LEN 32
#define PROC_TASK_COMM_LEN_FMT "(%31s"
--
1.7.7.6
More information about the CRIU
mailing list