From 5e0056db8d7e8aaa252388fea0752071bd3667ec Mon Sep 17 00:00:00 2001 From: Steffen Eiden Date: Wed, 30 Nov 2022 15:22:15 +0100 Subject: [PATCH] util_lockfile: fix includes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 'unistd.h' header was missing. Under some circumstances the -D_GNU_SOURCE gcc flag does not trigger including that file. Therefore, explicitly include this file here. Fixes: e1aec24e8436 ("libutil: introduce util_lockfile") Signed-off-by: Steffen Eiden Reviewed-by: Jan Hoeppner Signed-off-by: Jan Höppner --- libutil/util_lockfile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libutil/util_lockfile.c b/libutil/util_lockfile.c index d657664..5440442 100644 --- a/libutil/util_lockfile.c +++ b/libutil/util_lockfile.c @@ -18,6 +18,7 @@ #include #include #include +#include #include "lib/util_libc.h" #include "lib/util_lockfile.h" -- 2.35.3