$NetBSD: patch-af,v 1.3 2002/11/03 21:32:25 wiz Exp $

--- src/init_fnc.c.orig	Sun Nov  3 08:09:10 2002
+++ src/init_fnc.c
@@ -12,7 +12,13 @@
 #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>
