]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
zstdmt debug traces compatibles with mingw 1242/head
authorcyan4973 <yann.collet.73@gmail.com>
Tue, 17 Jul 2018 12:39:44 +0000 (14:39 +0200)
committercyan4973 <yann.collet.73@gmail.com>
Tue, 17 Jul 2018 12:39:44 +0000 (14:39 +0200)
since mingw does not have `sys/times.h`,
remove this path when detecting mingw compilation.

lib/compress/zstdmt_compress.c

index 6daedca8b3d0a57af2ad48e5fa7934a521a92e6d..d5193d52abfaed08372e26902847d800b72dc5fa 100644 (file)
@@ -37,7 +37,9 @@
 #define ZSTD_RESIZE_SEQPOOL 0
 
 /* ======   Debug   ====== */
-#if defined(DEBUGLEVEL) && (DEBUGLEVEL>=2) && !defined(_MSC_VER)
+#if defined(DEBUGLEVEL) && (DEBUGLEVEL>=2) \
+    && !defined(_MSC_VER) \
+    && !defined(__MINGW32__)
 
 #  include <stdio.h>
 #  include <unistd.h>