From b525657cd5360a4737df9c09169ef54d33420a99 Mon Sep 17 00:00:00 2001 From: Ulrich Ölmann Date: Fri, 8 Feb 2019 08:15:25 +0100 Subject: common: state: harmonize code with dt-utils MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Linux userspace with recent glibc versions lets barebox-state suffer from linux/stat.h redefining 'struct statx' and because of that switched to the inclusion of sys/stat.h instead, see dt-utils commit 1c80e31872ae ("src: fix compilation for glibc version 2.27.9000-36.fc29 and newer"). We can follow this switch in barebox without any problems, too, as in barebox sys/stat.h includes linux/stat.h (and adds some more definitions on top that don't hurt us here). Signed-off-by: Ulrich Ölmann Signed-off-by: Sascha Hauer --- common/state/backend_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/state') diff --git a/common/state/backend_storage.c b/common/state/backend_storage.c index 8cd822eec4..fca887e93f 100644 --- a/common/state/backend_storage.c +++ b/common/state/backend_storage.c @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include -- cgit v1.2.3