From ff50ef3b211cdf8b346edcd6c8062ac723e5aec7 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Fri, 14 Mar 2014 17:57:00 +0400 Subject: [PATCH] image.h: Include fcntl.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- include/image.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/image.h b/include/image.h index a0ac8b112..dc9b1d549 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