[CRIU] [PATCH] image.h: Include fcntl.h
Pavel Emelyanov
xemul at parallels.com
Fri Mar 14 07:08:54 PDT 2014
On 03/14/2014 05:57 PM, Cyrill Gorcunov wrote:
> No all distros (Rpi) provide O_PATH definition,
> so include fcntl.h here thus we don't hit compilation
> problem like
>
> | CC image.o
> | image.c: In function ‘open_image_at’:
> | image.c:187:29: error: ‘O_PATH’ undeclared (first use in this function)
>
> Reported-by: Pavel Emelyanov <xemul at parallels.com>
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
> include/image.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/image.h b/include/image.h
> index a0ac8b112e93..dc9b1d549297 100644
> --- a/include/image.h
> +++ b/include/image.h
> @@ -6,6 +6,7 @@
> #include "compiler.h"
> #include "servicefd.h"
> #include "image-desc.h"
> +#include "fcntl.h"
> #include "magic.h"
>
> #define PAGE_IMAGE_SIZE 4096
>
applied
More information about the CRIU
mailing list