summaryrefslogtreecommitdiff
path: root/sysutils/mcelog/files/patch-cache.c
blob: aa230652089f2cfa33b9736435886274c85797b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- cache.c.orig	2016-02-10 18:38:43 UTC
+++ cache.c
@@ -27,6 +27,7 @@
 #include "sysfs.h"
 #include "cache.h"
 
+#ifdef __Linux__
 struct cache { 
 	unsigned level;
 	/* Numerical values must match MCACOD */
@@ -173,6 +174,15 @@ int cache_to_cpus(int cpu, unsigned leve
 	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()