blob: aef65b0af54f008e36eaa84e5ea317642d953efb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-af,v 1.2 2002/10/03 11:44:40 wiz Exp $
--- src/init_fnc.c.orig Wed Sep 25 17:12:36 2002
+++ src/init_fnc.c
@@ -11,7 +11,13 @@
#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>
|