mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-20 13:42:14 +00:00
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:
18
src/nwipe.h
18
src/nwipe.h
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user