[CRIU] [PATCH] test/zdtm: fix compilation of maps02.c

Pavel Emelyanov xemul at parallels.com
Fri Oct 3 01:49:02 PDT 2014


On 10/02/2014 05:12 PM, Nicolas Dichtel wrote:
> Error was:
> maps02.c: In function ‘main’:
> maps02.c:57:74: error: ‘MADV_DONTDUMP’ undeclared (first use in this function)
> maps02.c:57:74: note: each undeclared identifier is reported only once for each function it appears in
> make: *** [maps02] Error 1
> ERROR: fail to start /home/root/criu/test/zdtm/live/static/maps02
> 
> Signed-off-by: Nicolas Dichtel <nicolas.dichtel at 6wind.com>

Andrey, please, review the patch.

> ---
>  test/zdtm/live/static/maps02.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/test/zdtm/live/static/maps02.c b/test/zdtm/live/static/maps02.c
> index 336044fea672..b9fb27bb4c45 100644
> --- a/test/zdtm/live/static/maps02.c
> +++ b/test/zdtm/live/static/maps02.c
> @@ -1,5 +1,6 @@
>  #include <sys/mman.h>
>  #include "zdtmtst.h"
> +#include <asm-generic/mman-common.h>
>  
>  const char *test_doc	= "Test shared memory with advises";
>  const char *test_author	= "Cyrill Gorcunov <gorcunov at openvz.org>";
> 



More information about the CRIU mailing list