Files
ports/textproc/apertium-recursive/patches/patch-src_rtx_proc_cc
T
2025-11-11 17:40:56 +00:00

20 lines
533 B
Plaintext

Index: src/rtx_proc.cc
--- src/rtx_proc.cc.orig
+++ src/rtx_proc.cc
@@ -4,9 +4,15 @@
#include <lttoolbox/file_utils.h>
#include <lttoolbox/lt_locale.h>
#include <iostream>
+#include <unistd.h>
int main(int argc, char *argv[])
{
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
+ {
+ cerr << "pledge" << endl;
+ exit(EXIT_FAILURE);
+ }
LtLocale::tryToSetLocale();
CLI cli("perform structural transfer", PACKAGE_VERSION);
cli.add_bool_arg('a', "anaphora", "expect coreference LUs from apertium-anaphora");