Index: jewel.c
--- jewel.c.orig
+++ jewel.c
@@ -18,6 +18,8 @@
 #include <X11/keysymdef.h>
 #endif
 
+#include <sys/stat.h>
+#include <stdio.h>
 #include <stdlib.h>
 
 #include "general.h"
@@ -30,6 +32,9 @@
 #include "game.h"
 #include "panel.h"
 #include "help.h"
+
+/* OpenBSD: set[ug]id binary MUST say so in this var */
+mode_t _permit_setugid = S_ISGID;
 
 #include "version.h"
 char *StartString="Press \140Space\047 to begin, or \140H\047 for Help";
