ports/textproc/libmarisa/patches/patch-tests_marisa-test_cc

14 lines
496 B
Text

Fix test on OpenBSD
Index: tests/marisa-test.cc
--- tests/marisa-test.cc.orig
+++ tests/marisa-test.cc
@@ -18,7 +18,7 @@ void TestEmptyTrie() {
#ifdef _MSC_VER
EXCEPT(trie.write(::_fileno(stdout)), MARISA_STATE_ERROR);
#else // _MSC_VER
- EXCEPT(trie.write(::fileno(stdout)), MARISA_STATE_ERROR);
+ EXCEPT(trie.write(fileno(stdout)), MARISA_STATE_ERROR);
#endif // _MSC_VER
EXCEPT(std::cout << trie, MARISA_STATE_ERROR);
EXCEPT(marisa::fwrite(stdout, trie), MARISA_STATE_ERROR);