From c81a0f567865044210a52403cd7e8b3f39c8c25e Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Sun, 22 Oct 2017 16:48:44 +1300 Subject: [PATCH] Fix unittest to build with MSVC We need the compatibility implementation of opendir(), etc. --- xapian-core/tests/unittest.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xapian-core/tests/unittest.cc b/xapian-core/tests/unittest.cc index 81234ed1a..6cfec3829 100644 --- a/xapian-core/tests/unittest.cc +++ b/xapian-core/tests/unittest.cc @@ -81,6 +81,9 @@ using namespace std; #include "../api/error.cc" #include "../api/sortable-serialise.cc" +// fileutils.cc uses opendir(), etc though not in a function we currently test. +#include "../common/msvc_dirent.cc" + // Stub replacement, which doesn't deal with escaping or producing valid UTF-8. // The full implementation needs Xapian::Utf8Iterator and // Xapian::Unicode::append_utf8(). -- 2.11.4.GIT