24 lines
552 B
Text
24 lines
552 B
Text
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;
|