Index: util/recover.c
--- util/recover.c.orig
+++ util/recover.c
@@ -50,6 +50,13 @@ char *FDECL(exepath, (char *));
 #ifdef __BORLANDC__
 extern unsigned _stklen = STKSIZ;
 #endif
+
+#ifdef __OpenBSD__
+#include <sys/stat.h>
+/* OpenBSD: set[ug]id binary MUST say so in this var */
+mode_t _permit_setugid = S_ISGID;
+#endif
+
 char savename[SAVESIZE]; /* holds relative path of save file from playground */
 
 
