mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
20 lines
533 B
Plaintext
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");
|