ports/textproc/apertium/patches/patch-apertium_apertium-multiple-translations_cc

16 lines
415 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: apertium/apertium-multiple-translations.cc
--- apertium/apertium-multiple-translations.cc.orig
+++ apertium/apertium-multiple-translations.cc
@@ -43,6 +43,11 @@ void message(char *progname)
int main(int argc, char *argv[])
{
+ if (pledge("stdio rpath wpath cpath", NULL) == -1) {
+ cerr << "pledge" << endl;
+ exit(EXIT_FAILURE);
+ }
+
LtLocale::tryToSetLocale();
if(argc > 5 || argc <3)