ports/textproc/apertium/patches/patch-apertium_apertium_posttransfer_cc

25 lines
560 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: apertium/apertium_posttransfer.cc
--- apertium/apertium_posttransfer.cc.orig
+++ apertium/apertium_posttransfer.cc
@@ -20,6 +20,7 @@
#include <libgen.h>
#include <string>
#include "getopt_long.h"
+#include <unistd.h>
#ifdef _MSC_VER
#include <io.h>
@@ -63,6 +64,12 @@ void processStream(FILE *in, FILE *out, bool null_flus
int main(int argc, char *argv[])
{
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
+ {
+ wcerr << "pledge" << endl;
+ exit(EXIT_FAILURE);
+ }
+
LtLocale::tryToSetLocale();
bool null_flush = false;