Author: Dharanendiran <dharanendiran@timesys.com>
Date: Thu, 14 Nov 2024 12:59:49 +0530

Error log:

/home/timesys/factory/build/build_x86_64-timesys-linux-uclibc/toolchain/include/bits/stat.h:103:22: error: expected identifier or '(' before '[' token
  103 |     long int __unused[3];
      |                      ^
/home/timesys/factory/build/build_x86_64-timesys-linux-uclibc/toolchain/include/bits/stat.h:164:22: error: expected identifier or '(' before '[' token
  164 |     long int __unused[3];

---
 compat/arc4random.c | 3 ++-
 compat/closefrom.c  | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/compat/arc4random.c b/compat/arc4random.c
index d61d61f..dd3f2d5 100644
--- a/compat/arc4random.c
+++ b/compat/arc4random.c
@@ -28,7 +28,6 @@
  *                   lib/libc/crypt/arc4random.h
  */
 
-#include "config.h"
 
 #include <fcntl.h>
 #include <limits.h>
@@ -40,6 +39,8 @@
 #include <sys/types.h>
 #include <sys/time.h>
 
+#include "config.h"
+
 #if defined(HAVE_OPENSSL)
 #include <openssl/rand.h>
 #endif
diff --git a/compat/closefrom.c b/compat/closefrom.c
index 7161573..6b2b406 100644
--- a/compat/closefrom.c
+++ b/compat/closefrom.c
@@ -17,7 +17,6 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#include "config.h"
 
 #ifdef __linux__
 # include <sys/syscall.h>
@@ -29,6 +28,8 @@
 #include <fcntl.h>
 #include <unistd.h>
 
+#include "config.h"
+
 #if defined(__linux__) && defined(SYS_close_range)
 static inline int
 sys_close_range(unsigned int fd, unsigned int max_fd, unsigned int flags)
-- 
2.25.1

