[CRIU] [PATCH] kerndat: include config.h before using CONFIG_* contants
Cyrill Gorcunov
gorcunov at openvz.org
Tue Jun 27 09:12:12 MSK 2017
Ack! Thank you!
On Tue, Jun 27, 2017, 06:51 Andrei Vagin <avagin at openvz.org> wrote:
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20170627/60a34392/attachment-0001.html>
More information about the CRIU
mailing list