SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
20
textproc/apertium-lex-tools/patches/patch-src_multitrans_cc
Normal file
20
textproc/apertium-lex-tools/patches/patch-src_multitrans_cc
Normal file
|
@ -0,0 +1,20 @@
|
|||
Index: src/multitrans.cc
|
||||
--- src/multitrans.cc.orig
|
||||
+++ src/multitrans.cc
|
||||
@@ -1,3 +1,4 @@
|
||||
+#include <unistd.h>
|
||||
#include "multi_translator.h"
|
||||
|
||||
bool trim = false;
|
||||
@@ -24,6 +25,11 @@ void printError(char *name) {
|
||||
}
|
||||
|
||||
void parseArguments(int argc, char **argv) {
|
||||
+ if (pledge("stdio rpath wpath cpath", NULL) == -1) {
|
||||
+ wcerr << "pledge" << endl;
|
||||
+ exit(1);
|
||||
+ }
|
||||
+
|
||||
if (argc < 3 || argc > 7) {
|
||||
printError(argv[0]);
|
||||
exit(1);
|
Loading…
Add table
Add a link
Reference in a new issue