opnsense-ports/sysutils/mcelog/files/patch-cache.c
Franco Fichtner ae1e3c6f0e */*: sync with upstream
Taken from: FreeBSD
2016-03-08 19:03:51 +01:00

26 lines
519 B
C

--- 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()