Commit ff50ef3b authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

image.h: Include fcntl.h

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: 's avatarPavel Emelyanov <xemul@parallels.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 57825f65
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include "compiler.h" #include "compiler.h"
#include "servicefd.h" #include "servicefd.h"
#include "image-desc.h" #include "image-desc.h"
#include "fcntl.h"
#include "magic.h" #include "magic.h"
#define PAGE_IMAGE_SIZE 4096 #define PAGE_IMAGE_SIZE 4096
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment