$OpenBSD: patch-dc_gui2_stat_src_init_fnc_c,v 1.1 2008/08/25 15:15:53 jasper Exp $
--- dc_gui2_stat/src/init_fnc.c.orig	Sat Aug 23 18:55:07 2008
+++ dc_gui2_stat/src/init_fnc.c	Sat Aug 23 18:55:29 2008
@@ -35,7 +35,9 @@ $Id: init_fnc.c,v 1.1 2003/12/26 14:31:52 uid68112 Exp
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/wait.h>
-#include <linux/sem.h>		/* for the value of SEMVMX */
+#ifdef HAVE_LINUX_SEM_H
+# include <linux/sem.h>     /* for the value of SEMVMX */
+#endif
 #include <dirent.h>
 #include <string.h>
 #include <errno.h>
@@ -48,6 +50,10 @@ $Id: init_fnc.c,v 1.1 2003/12/26 14:31:52 uid68112 Exp
 #include "gui_define.h"
 #include "done_clist.h"
 #include "callbacks.h"
+
+#ifdef __OpenBSD__
+# define SEMVMX 32767
+#endif
 
 /**************************************************************************************/
 /* search in the given treemodel, in the given column a string matching the given one */
