Index: apertium/deformat.xsl
--- apertium/deformat.xsl.orig
+++ apertium/deformat.xsl
@@ -152,6 +152,7 @@
 #include &lt;map&gt;
 #include &lt;string&gt;
 #include &lt;vector&gt;
+#include &lt;unistd.h&gt;
 
 extern "C" {
 #if !defined(__STDC__)
@@ -675,6 +676,12 @@ void usage(string const &amp;progname)
 
 int main(int argc, char *argv[])
 {
+  if (pledge("stdio rpath wpath cpath", NULL) == -1)
+  {
+    wcerr &lt;&lt; "pledge" &lt;&lt; endl;
+    exit(EXIT_SUCCESS);
+  }
+
   LtLocale::tryToSetLocale();
   int base = 0;
   eosIncond = false;
