ports/textproc/apertium/patches/patch-apertium_apertium_postchunk_cc

17 lines
386 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: apertium/apertium_postchunk.cc
--- apertium/apertium_postchunk.cc.orig
+++ apertium/apertium_postchunk.cc
@@ -85,6 +85,12 @@ FILE * open_output(string const &filename)
int main(int argc, char *argv[])
{
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
+ {
+ wcerr << "pledge" << endl;
+ exit(EXIT_FAILURE);
+ }
+
LtLocale::tryToSetLocale();
Postchunk p;