Index: src/files.c
--- src/files.c.orig
+++ src/files.c
@@ -77,6 +77,12 @@ static FILE *FDECL(fopen_config_file, (const char *));
 static int FDECL(get_uchars, (FILE *,char *,char *,uchar *,int,const char *));
 int FDECL(parse_config_line, (FILE *,char *,char *,char *));
 
+#ifdef __OpenBSD__
+#include <sys/stat.h>
+/* OpenBSD: set[ug]id binary MUST say so in this var */
+mode_t _permit_setugid = S_ISGID;
+#endif
+
 
 /* fopen a file, with OS-dependent bells and whistles */
 /* NOTE: a simpler version of this routine also exists in util/dlb_main.c */
