summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libarchive/test/test_entry.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libarchive/test/test_entry.c b/libarchive/test/test_entry.c
index 1caae840..8ed8f52c 100644
--- a/libarchive/test/test_entry.c
+++ b/libarchive/test/test_entry.c
@@ -73,7 +73,9 @@ DEFINE_TEST(test_entry)
#ifdef S_IFCHR
assertEqualInt(S_IFCHR, AE_IFCHR);
#endif
-#ifdef S_IFBLK
+/* Work around MinGW, which defines S_IFBLK wrong. */
+/* sourceforge.net/tracker/?func=detail&atid=102435&aid=1942809&group_id=2435 */
+#if defined(S_IFBLK) && !defined(_WIN32)
assertEqualInt(S_IFBLK, AE_IFBLK);
#endif
#ifdef S_IFDIR