blob: efe83bab11eff02a35142f014e79f4c95f7efaeb (
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 2003/07/16 10:56:57 wiz Exp $
--- src/init_fnc.c.orig Wed Jul 9 18:20:53 2003
+++ src/init_fnc.c
@@ -35,7 +35,13 @@ $Id: init_fnc.c,v 1.13 2003/07/09 16:20:
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.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 <errno.h>
|