ports/textproc/apertium/patches/patch-apertium_deformat_xsl

25 lines
552 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: apertium/deformat.xsl
--- apertium/deformat.xsl.orig
+++ apertium/deformat.xsl
@@ -155,6 +155,7 @@
#include <map>
#include <string>
#include <vector>
+#include <unistd.h>
extern "C" {
#if !defined(__STDC__)
@@ -689,6 +690,12 @@ void usage(string const &progname)
int main(int argc, char *argv[])
{
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
+ {
+ wcerr << "pledge" << endl;
+ exit(EXIT_SUCCESS);
+ }
+
LtLocale::tryToSetLocale();
size_t base = 0;
eosIncond = false;