These tools both process input files at build time to generate the apertium language pairs and dictionary files, and at runtime perform language translation for the user with said language pairs and dictionaries.
26 lines
591 B
Plaintext
26 lines
591 B
Plaintext
$OpenBSD: patch-apertium_apertium_rexlsx_cc,v 1.1 2019/03/05 05:19:32 bentley Exp $
|
|
|
|
Index: apertium/apertium_rexlsx.cc
|
|
--- apertium/apertium_rexlsx.cc.orig
|
|
+++ apertium/apertium_rexlsx.cc
|
|
@@ -21,6 +21,7 @@
|
|
#include <string.h>
|
|
#include <errno.h>
|
|
#include <stdlib.h>
|
|
+#include <unistd.h>
|
|
|
|
/* end standard C headers. */
|
|
|
|
@@ -1855,6 +1856,11 @@ void usage(string const &progname)
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
+ if (pledge("stdio rpath wpath cpath", NULL) == -1) {
|
|
+ wcerr << "pledge" << endl;
|
|
+ exit(EXIT_FAILURE);
|
|
+ }
|
|
+
|
|
LtLocale::tryToSetLocale();
|
|
|
|
if(argc > 3)
|