[CRIU] [PATCH] image.h: Include fcntl.h

Cyrill Gorcunov gorcunov at openvz.org
Fri Mar 14 06:57:29 PDT 2014


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
-- 
1.8.3.1



More information about the CRIU mailing list