move the define off64_t

Move the definition of the off64_t using int64_t  bellow the include stdint.h, which is actually defining it.

Without change wrong order is breaking the build on RHEL7/8/9.
This commit is contained in:
Michal Ambroz
2023-11-03 22:47:29 +01:00
committed by GitHub
parent 63c64b91e4
commit 398b03a11a

View File

@@ -36,15 +36,6 @@ void* signal_hand( void* );
#define _FILE_OFFSET_BITS 64
#endif
/* workaround for Fedora */
#ifndef off64_t
#ifndef off_t
#define off64_t int64_t
#else
#define off64_t off_t
#endif
#endif
/* Busybox headers. */
#ifdef BB_VER
#include "busybox.h"
@@ -68,6 +59,15 @@ void* signal_hand( void* );
#include <time.h>
#include <unistd.h>
/* workaround for Fedora */
#ifndef off64_t
#ifndef off_t
#define off64_t int64_t
#else
#define off64_t off_t
#endif
#endif
/*#include "config.h"*/
/* System errors. */