19 lines
476 B
Plaintext
19 lines
476 B
Plaintext
$NetBSD: patch-ag,v 1.1 2010/06/02 13:08:22 adam Exp $
|
|
|
|
--- dc_gui2_stat/src/init_fnc.c.orig Wed Jul 9 18:20:53 2003
|
|
+++ dc_gui2_stat/src/init_fnc.c
|
|
@@ -35,7 +35,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>
|