diff --git a/security/highwayhash/files/patch-highwayhash_arch__specific.cc b/security/highwayhash/files/patch-highwayhash_arch__specific.cc index 096e52cf97c3..1ad490e397d6 100644 --- a/security/highwayhash/files/patch-highwayhash_arch__specific.cc +++ b/security/highwayhash/files/patch-highwayhash_arch__specific.cc @@ -1,11 +1,21 @@ ---- highwayhash/arch_specific.cc.orig 2020-11-14 08:32:41 UTC +--- highwayhash/arch_specific.cc.orig 2020-09-22 06:18:43 UTC +++ highwayhash/arch_specific.cc +@@ -24,8 +24,8 @@ + #if __GLIBC__ + #include // __ppc_get_timebase_freq + #elif __FreeBSD__ +-#include + #include ++#include + #endif + #endif + @@ -174,7 +174,7 @@ double InvariantTicksPerSecond() { #elif __FreeBSD__ static double cycles_per_second = 0; size_t length = sizeof(cycles_per_second); - sysctlbyname("kern.timecounter.tc.timebase.frequency", &cycles_per_second, + sysctlbyname("dev.cpu.0.freq", &cycles_per_second, &length, NULL, 0); #endif return cycles_per_second; diff --git a/security/highwayhash/files/patch-highwayhash_os__specific.cc b/security/highwayhash/files/patch-highwayhash_os__specific.cc new file mode 100644 index 000000000000..c8065cda19cd --- /dev/null +++ b/security/highwayhash/files/patch-highwayhash_os__specific.cc @@ -0,0 +1,10 @@ +--- highwayhash/os_specific.cc.orig 2020-11-29 23:19:18 UTC ++++ highwayhash/os_specific.cc +@@ -53,6 +53,7 @@ + + #ifdef __FreeBSD__ + #define OS_FREEBSD 1 ++#include + #include + #include + #include