diff --git a/tests/util_tests.cpp b/tests/util_tests.cpp index 7140d20d..38e93e00 100644 --- a/tests/util_tests.cpp +++ b/tests/util_tests.cpp @@ -16,7 +16,12 @@ #include "catch2/matchers/catch_matchers_string.hpp" #include "utils.h" +#if _WIN32 +#include +#define dup2(o,n) _dup2(o,n) +#else #include +#endif TEST_CASE("read_file", "[util]") { const char *test_path = TO_STRING(ZITI_TEST_DIR) "/ctrl_tests.cpp";