SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,22 @@
Index: apertium/apertium_perceptron_trace.cc
--- apertium/apertium_perceptron_trace.cc.orig
+++ apertium/apertium_perceptron_trace.cc
@@ -1,5 +1,6 @@
#include <fstream>
#include <string>
+#include <unistd.h>
#include <apertium/mtx_reader.h>
#include <apertium/perceptron_tagger.h>
@@ -109,5 +110,11 @@ int perceptron_trace(int argc, char* argv[])
int main(int argc, char* argv[]) {
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
+ {
+ std::wcout << "pledge" << std::endl;
+ return 1;
+ }
+
return Apertium::perceptron_trace(argc, argv);
}