fix uclibc's st_mtim

reported and suggested by @ewildgoose (#1872)
dev
Yann Collet 2020-07-13 14:16:33 -07:00
parent bd21e4b264
commit 1dcc478796
1 changed files with 6 additions and 0 deletions

View File

@ -102,6 +102,12 @@ extern "C" {
# define PLATFORM_POSIX_VERSION 1
# endif
# ifdef __UCLIBC__
# ifndef __USE_MISC
# define __USE_MISC /* enable st_mtim on uclibc */
# endif
# endif
# else /* non-unix target platform (like Windows) */
# define PLATFORM_POSIX_VERSION 0
# endif