Index: apertium/apertium_tmxbuild.cc --- apertium/apertium_tmxbuild.cc.orig +++ apertium/apertium_tmxbuild.cc @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -61,6 +62,11 @@ void usage(char *progname) int main(int argc, char *argv[]) { + if (pledge("stdio rpath wpath cpath", NULL) == -1) { + wcerr << L"pledge" << endl; + exit(EXIT_FAILURE); + } + LtLocale::tryToSetLocale(); string output_file = ""; string doc1 = "", doc2 = "";