From 6e9151ca055629e8cb7a9bb13be28967ebcf2c61 Mon Sep 17 00:00:00 2001 From: Ryan Steinmetz Date: Sat, 15 Oct 2011 02:53:31 +0000 Subject: New port: sysutils/mcelog mcelog processes machine checks (in particular memory and CPU hardware errors) on modern x86-based unix systems and produces human-readable output. FreeBSD conversion patches were originally written by John Baldwin and later incorporated into this port. WWW: http://mcelog.org/ PR: ports/161395 Submitted by: Jeremy Chadwick --- sysutils/mcelog/files/patch-cache.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 sysutils/mcelog/files/patch-cache.c (limited to 'sysutils/mcelog/files/patch-cache.c') diff --git a/sysutils/mcelog/files/patch-cache.c b/sysutils/mcelog/files/patch-cache.c new file mode 100644 index 000000000000..f9ebf538b5ff --- /dev/null +++ b/sysutils/mcelog/files/patch-cache.c @@ -0,0 +1,26 @@ +--- ./cache.c.orig 2009-12-15 07:18:40.000000000 -0500 ++++ ./cache.c 2011-10-14 22:36:47.000000000 -0400 +@@ -27,6 +27,7 @@ + #include "sysfs.h" + #include "cache.h" + ++#ifdef __Linux__ + struct cache { + unsigned level; + /* Numerical values must match MCACOD */ +@@ -164,6 +165,15 @@ + Wprintf("Cannot find sysfs cache for CPU %d", cpu); + return -1; + } ++#endif ++ ++#ifdef __FreeBSD__ ++int cache_to_cpus(int cpu, unsigned level, unsigned type, ++ int *cpulen, unsigned **cpumap) ++{ ++ return -1; ++} ++#endif + + #ifdef TEST + main() -- cgit v1.2.3