Index: apertium/apertium_cleanstream.cc --- apertium/apertium_cleanstream.cc.orig +++ apertium/apertium_cleanstream.cc @@ -22,6 +22,7 @@ #include #include #include +#include #ifdef __MINGW32__ #include @@ -98,6 +99,11 @@ readFullBlock(FILE *input, wchar_t const delim1, wchar int main (int argc, char** argv) { + if (pledge("stdio rpath wpath cpath", NULL) == -1) { + wcerr << "pledge" << endl; + exit(EXIT_FAILURE); + } + wstring buf = L""; wstring blanktmp = L""; bool keepblank = false;