path: root/common
diff options
authorUlrich Ölmann <>2019-02-08 08:15:25 +0100
committerSascha Hauer <>2019-02-11 09:12:36 +0100
commitb525657cd5360a4737df9c09169ef54d33420a99 (patch)
treeba5d95b149ce38003ecaef0cb87ee0b2e437294a /common
parent240abfe2224f3701c2f81a3baeed1206f5539f24 (diff)
common: state: harmonize code with dt-utils
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 <>
Diffstat (limited to 'common')
1 files changed, 1 insertions, 1 deletions
diff --git a/common/state/backend_storage.c b/common/state/backend_storage.c
index 8cd822e..fca887e 100644
--- a/common/state/backend_storage.c
+++ b/common/state/backend_storage.c
@@ -19,7 +19,7 @@
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/mtd/mtd-abi.h>
-#include <linux/stat.h>
+#include <sys/stat.h>
#include <malloc.h>
#include <printk.h>