ports/textproc/apertium/patches/patch-apertium_reformat_xsl

17 lines
372 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: apertium/reformat.xsl
--- apertium/reformat.xsl.orig
+++ apertium/reformat.xsl
@@ -178,6 +178,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();
if(argc > 3)