aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/0025-fs-utilh-add-missing-sys-stat-include.patch
blob: ada404b053e3e16bcda57e87a485999d544eaeaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 56e3c9581e2c9b7435d5fcbd74b47c7ccf6b3891 Mon Sep 17 00:00:00 2001
From: Andrej Valek <andrej.valek@siemens.com>
Date: Thu, 18 Apr 2019 10:47:11 +0200
Subject: fs-util.h: add missing sys/stat include

fix error:
| error: passing argument 5 of 'chase_symlinks_and_stat' from incompatible pointer type [-Werror=incompatible-pointer-types]

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>

Upstream-Status: Accepted
---
 src/basic/fs-util.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/basic/fs-util.h b/src/basic/fs-util.h
index b9651205e6..c153bc4448 100644
--- a/src/basic/fs-util.h
+++ b/src/basic/fs-util.h
@@ -7,6 +7,7 @@
 #include <stdbool.h>
 #include <stdint.h>
 #include <sys/inotify.h>
+#include <sys/stat.h>
 #include <sys/types.h>
 #include <unistd.h>
 
-- 
2.20.1