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:
Kalamatee 2022-06-15 14:51:44 +01:00 committed by deadwood
parent 1ae598db48
commit 3ef2a37207
1 changed files with 12 additions and 0 deletions

View File

@ -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;