From: Yann Collet Date: Mon, 13 Jul 2020 21:16:33 +0000 (-0700) Subject: fix uclibc's st_mtim X-Git-Tag: v1.4.7~112^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dcc4787965aa8f4af48ed5a2154185750bbaff5;p=thirdparty%2Fzstd.git fix uclibc's st_mtim reported and suggested by @ewildgoose (#1872) --- diff --git a/programs/platform.h b/programs/platform.h index 2b4b9f2d8..68be70bb3 100644 --- a/programs/platform.h +++ b/programs/platform.h @@ -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