Index: apertium/gen_modes.cc --- apertium/gen_modes.cc.orig +++ apertium/gen_modes.cc @@ -31,6 +31,7 @@ #include #include #include +#include using namespace Apertium; using namespace std; @@ -300,6 +301,11 @@ void gen_modes(map& modes, fs::path& int main(int argc, char* argv[]) { + if (pledge("stdio rpath wpath cpath", NULL) == -1) { + cerr << "pledge" << endl; + exit(EXIT_FAILURE); + } + LtLocale::tryToSetLocale(); #if HAVE_GETOPT_LONG