Index: apertium/apertium-postlatex.l --- apertium/apertium-postlatex.l.orig +++ apertium/apertium-postlatex.l @@ -10,6 +10,7 @@ #include #include #include +#include extern "C" { #if !defined(__STDC__) @@ -315,6 +316,12 @@ void usage(string const &progname) int main(int argc, char *argv[]) { + if (pledge("stdio rpath wpath cpath", NULL) == -1) + { + cerr << "pledge" << endl; + exit(EXIT_FAILURE); + } + LtLocale::tryToSetLocale(); size_t base = 0;