ports/textproc/apertium/patches/patch-apertium_apertium-postlatex-raw_l

25 lines
549 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: apertium/apertium-postlatex-raw.l
--- apertium/apertium-postlatex-raw.l.orig
+++ apertium/apertium-postlatex-raw.l
@@ -10,6 +10,7 @@
#include <string>
#include <vector>
#include <apertium/latex_accentsmap.h>
+#include <unistd.h>
extern "C" {
#if !defined(__STDC__)
@@ -257,6 +258,12 @@ void usage(string const &progname)
int main(int argc, char *argv[])
{
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
+ {
+ cerr << "pledge" << endl;
+ exit(EXIT_FAILURE);
+ }
+
LtLocale::tryToSetLocale();
size_t base = 0;