72704a08a7
- Added version prefix - Switched to github over master sites - Removed patch_strip - Changed hard LDFLAGS to include - Fixed version in source - Updated distfile - Regenerated patchfiles for portlint - Modified several patchfiles, adapted to new version - submitter becomes maintainer PR: 207145 Submitted by: Ultima1252@gmail.com Approved by: Jeremy Chadwick <jdc@koitsu.org> (maintainer)
26 lines
519 B
C
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()
|