23 lines
516 B
Text
23 lines
516 B
Text
Index: apertium/gen_modes.cc
|
|
--- apertium/gen_modes.cc.orig
|
|
+++ apertium/gen_modes.cc
|
|
@@ -31,6 +31,7 @@
|
|
#include <map>
|
|
#include <string>
|
|
#include <set>
|
|
+#include <unistd.h>
|
|
|
|
using namespace Apertium;
|
|
using namespace std;
|
|
@@ -300,6 +301,11 @@ void gen_modes(map<string, pipeline>& modes, fs::path&
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
+ if (pledge("stdio rpath wpath cpath", NULL) == -1) {
|
|
+ cerr << "pledge" << endl;
|
|
+ exit(EXIT_FAILURE);
|
|
+ }
|
|
+
|
|
LtLocale::tryToSetLocale();
|
|
|
|
#if HAVE_GETOPT_LONG
|