$OpenBSD: patch-apertium_apertium_tagger_cc,v 1.1 2019/03/05 05:19:32 bentley Exp $

Index: apertium/apertium_tagger.cc
--- apertium/apertium_tagger.cc.orig
+++ apertium/apertium_tagger.cc
@@ -813,6 +813,11 @@ void apertium_tagger::t_FILE_Tagger(FILE_Tagger &FILE_
 }
 
 int main(int argc, char **argv) {
+  if (pledge("stdio rpath wpath cpath", NULL) == -1) {
+    std::wcerr << "pledge" << endl;
+    exit(EXIT_FAILURE);
+  }
+
   try {
     apertium_tagger(argc, argv);
   } catch (const err_Exception &err_Exception_) {
