]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fix uclibc's st_mtim 2243/head
authorYann Collet <cyan@fb.com>
Mon, 13 Jul 2020 21:16:33 +0000 (14:16 -0700)
committerYann Collet <cyan@fb.com>
Mon, 13 Jul 2020 21:16:33 +0000 (14:16 -0700)
reported and suggested by @ewildgoose (#1872)

programs/platform.h

index 2b4b9f2d86771ff868e85d8007bdea0859dfcb83..68be70bb333bbde360d682948259aed709f7f421 100644 (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