$OpenBSD: patch-src_init_fnc_c,v 1.2 2008/08/25 15:15:53 jasper Exp $ --- src/init_fnc.c.orig Thu Aug 21 16:18:21 2008 +++ src/init_fnc.c Thu Aug 21 16:19:02 2008 @@ -35,7 +35,9 @@ $Id: init_fnc.c,v 1.13 2003/12/30 09:00:18 ericprev Ex #include #include #include -#include /* for the value of SEMVMX */ +#ifdef HAVE_LINUX_SEM_H +# include /* for the value of SEMVMX */ +#endif #include #include #include @@ -59,6 +61,10 @@ $Id: init_fnc.c,v 1.13 2003/12/30 09:00:18 ericprev Ex #include "custom_hublist_tree.h" #include "callbacks.h" #include "global_user.h" + +#ifdef __OpenBSD__ +# define SEMVMX 32767 +#endif /**************************************************************************************/ /* search in the given treemodel, in the given column a string matching the given one */