mirror of https://github.com/deadw00d/AROS.git
newer versions of glibc do not provide a definition for _STAT_VER, and will not provide it in future. It is advised to define it ourselves, so do this.
This commit is contained in:
parent
1ae598db48
commit
3ef2a37207
|
@ -46,6 +46,18 @@ typedef int file_t;
|
|||
#define DISK_BASE 'a'
|
||||
#endif
|
||||
|
||||
#ifdef HOST_OS_linux
|
||||
# ifndef _STAT_VER
|
||||
# if defined (__aarch64__)
|
||||
# define _STAT_VER 0
|
||||
# elif defined (__x86_64__)
|
||||
# define _STAT_VER 1
|
||||
# else
|
||||
# define _STAT_VER 3
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* AROS includes don't define struct stat64, this shuts up warning when compiling host-independent part */
|
||||
struct stat64;
|
||||
|
||||
|
|
Loading…
Reference in New Issue