From: Julien Grall Date: Thu, 24 Jun 2021 08:07:52 +0000 (+0100) Subject: tools/xenstored: xenstored_core.h should include fcntl.h X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~42^2~410 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a8002238b49c3423c7081dfbac3580651f5242ef;p=xen.git tools/xenstored: xenstored_core.h should include fcntl.h xenstored_core.h will consider live-udpate is not supported if O_CLOEXEC doesn't exist. However, the header doesn't include the one defining O_CLOEXEC (i.e. fcntl.h). This means that depending on the header included, some source file will think Live-Update is not supported. I am not aware of any issue with the existing. Therefore this is just a latent bug so far. Prevent any potential issue by including fcntl.h in xenstored_core.h Fixes: cd831ee438 ("tools/xenstore: handle CLOEXEC flag for local files and pipes") Signed-off-by: Julien Grall Reviewed-by: Luca Fancellu Reviewed-by: Juergen Gross --- diff --git a/tools/xenstore/xenstored_core.h b/tools/xenstore/xenstored_core.h index 34839b34f6..dac5171569 100644 --- a/tools/xenstore/xenstored_core.h +++ b/tools/xenstore/xenstored_core.h @@ -24,6 +24,7 @@ #include #include +#include #include #include #include