$OpenBSD: patch-src_validator_c,v 1.1 2018/09/25 19:04:32 jasper Exp $

Index: src/validator.c
--- src/validator.c.orig
+++ src/validator.c
@@ -26,6 +26,7 @@
  * USA.
  */
 
+#include <unistd.h>
 #include "validate.h"
 
 static gboolean   warn_kde = FALSE;
@@ -48,6 +49,11 @@ main (int argc, char *argv[])
   GError         *error;
   int i;
   gboolean all_valid;
+
+  if (pledge("stdio rpath", NULL) == -1) {
+    g_printerr("pledge\n");
+    return 1;
+  }
 
   context = g_option_context_new (NULL);
   g_option_context_set_summary (context, "Validate desktop entry files "
