$OpenBSD: patch-src_lsx_proc_cc,v 1.1 2021/11/15 04:23:36 bentley Exp $

Index: src/lsx_proc.cc
--- src/lsx_proc.cc.orig
+++ src/lsx_proc.cc
@@ -1,9 +1,15 @@
 #include <lttoolbox/lt_locale.h>
 #include <iostream>
+#include <unistd.h>
 #include "lsx_processor.h"
 
 int main (int argc, char** argv)
 {
+  if (pledge("stdio rpath wpath cpath", NULL) == -1) {
+    wcerr << "pledge" << endl;
+    exit(EXIT_FAILURE);
+  }
+
   char *fname = NULL;
   bool nullFlush = false;
   if(argc != 2 && argc != 3)
