openbsd-ports/net/dc_gui/patches/patch-src_init_fnc_c
jasper 05cff3223d - update dc_gui to a gtk2 version 0.80
- fix license marker
- install .desktop file
- re-format DESCR

feedback and ok ajacoutot@
2008-08-25 15:15:53 +00:00

26 lines
908 B
Plaintext

$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 <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>
@@ -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 */