25 lines
549 B
Text
25 lines
549 B
Text
|
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;
|
||
|
|