[libubootenv,2/2] uboot_env: fix compilation for glibc version >= 2.28
diff mbox series

Message ID 1558471556-13127-2-git-send-email-pjtexier@koncepto.io
State Accepted
Headers show
Series
  • Untitled series #109130
Related show

Commit Message

'Pierre-Jean Texier' via swupdate May 21, 2019, 8:45 p.m. UTC
Starting with glibc 2.28, include file sys/stat.h will have a
definition for struct statx, in which case include file linux/stat.h should be
avoided, in order to prevent a duplicate definition.

This commit fixes (if _GNU_SOURCE is defined):

/usr/include/linux/stat.h:56:8: error: redefinition of ‘struct statx_timestamp’
 struct statx_timestamp {
        ^~~~~~~~~~~~~~~

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
---
 src/uboot_env.c | 1 -
 1 file changed, 1 deletion(-)

Patch
diff mbox series

diff --git a/src/uboot_env.c b/src/uboot_env.c
index a0f977c..e8483bf 100644
--- a/src/uboot_env.c
+++ b/src/uboot_env.c
@@ -32,7 +32,6 @@ 
 #include <sys/wait.h>
 #include <sys/ioctl.h>
 #include <zlib.h>
-#include <linux/stat.h>
 #include <mtd/mtd-user.h>
 #include <mtd/ubi-user.h>