pkgsrc/parallel/glunix/patches/patch-ak

34 lines
870 B
Text

$NetBSD: patch-ak,v 1.2 2005/05/29 14:38:33 wiz Exp $
--- glunix/src/idle/didle_sysinfo.h.orig 1995-09-22 01:57:04.000000000 +0200
+++ glunix/src/idle/didle_sysinfo.h
@@ -94,6 +94,8 @@
#define PROCFS "/proc"
+#ifndef __NetBSD__
+
#define X_AVENRUN 0
#define X_MPID 1
#define X_CPU 2
@@ -106,6 +108,7 @@
#define X_SWAPFS_MINFREE 9
#define X_NCPUS 10
#define X_VMINFO 11
+#endif
#define TOTAL 0
#define SEQUENTIAL 1
@@ -116,10 +119,11 @@
* Thus we'll get a coredump when going through array. The
* following is a size rounded up to 8.
*/
+#ifndef __NetBSD__
#define PRPSINFOSIZE (((sizeof(struct prpsinfo) + 7) / 8) * 8)
#define PAGE_SIZE 4096 /* operating system page size */
-
+#endif
#define NUM_CPUSTATES 5
/*****************************************************************************/