summaryrefslogtreecommitdiff
path: root/net/dc_gui/patches/patch-af
blob: 9aaf61f305c8222088d2e1ffafb722fa00b95461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-af,v 1.1.1.1 2002/09/11 20:47:14 wiz Exp $

--- src/init_fnc.c.orig	Fri Aug 23 19:11:47 2002
+++ src/init_fnc.c
@@ -11,10 +11,17 @@
 #include <math.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#ifdef __linux__
 #include <linux/sem.h>		/* for the value of SEMVMX */
+#else
+#ifndef SEMVMX
+#define SEMVMX  32767           /* semaphore maximum value */
+#endif
+#endif
 #include <dirent.h>
 #include <string.h>
 #include <gnome.h>
+#include <db4/db.h>
 
 #include "misc_gtk.h"
 #include "init_fnc.h"