Author: Dharanendiran <dharanendiran@timesys.com>
Date: Mon, 30 Oct 2023 18:02:23 +0530

Error log:

/home/timesys/fedora-34-64/fedora-34-64/build/build_mipsisa32el-timesys-linux-gnu/toolchain/include/sys/types.h:60:17: error: conflicting declaration 'typedef __dev_t dev_t'
 typedef __dev_t dev_t;
                 ^
In file included from /home/timesys/fedora-34-64/fedora-34-64/build/build_mipsisa32el-timesys-linux-gnu/toolchain/include/linux/futex.h:5:0,
                 from /home/timesys/fedora-34-64/fedora-34-64/build/build_mipsisa32el-timesys-linux-gnu/mariadb-10.11.5/mariadb-10.11.5/storage/innobase/log/log0sync.cc:67:
/home/timesys/fedora-34-64/fedora-34-64/build/build_mipsisa32el-timesys-linux-gnu/toolchain/include/linux/types.h:13:25: note: previous declaration as 'typedef __kernel_dev_t dev_t'
 typedef __kernel_dev_t  dev_t;
                         ^

---
 storage/innobase/log/log0sync.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/storage/innobase/log/log0sync.cc b/storage/innobase/log/log0sync.cc
index 6b14d1d3..a0b6fcea 100644
--- a/storage/innobase/log/log0sync.cc
+++ b/storage/innobase/log/log0sync.cc
@@ -64,6 +64,7 @@ Note that if write operation is very fast, a) or b) can be fine as alternative.
 #endif
 
 #ifdef __linux__
+#include <sys/types.h>
 #include <linux/futex.h>
 #include <sys/syscall.h>
 #endif
-- 
2.25.1

