aboutsummaryrefslogtreecommitdiffstats
path: root/misc/tenere/files/patch-cargo-crates_sys-info-0.9.1_c_freebsd.c
blob: 887456d06588db6f93006baf3178cc6a36e01991 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- workaround for https://github.com/FillZpp/sys-info-rs/issues/119

--- cargo-crates/sys-info-0.9.1/c/freebsd.c.orig	2024-12-10 05:14:48 UTC
+++ cargo-crates/sys-info-0.9.1/c/freebsd.c
@@ -28,7 +28,7 @@ const char *get_os_release(void) {
 	return (os_release);
 }
 
-uint64_t get_cpu_speed(void) {
+unsigned long get_cpu_speed(void) {
 	uint64_t tsc_freq;
 	size_t len;
 	int error;
@@ -44,7 +44,7 @@ uint64_t get_cpu_speed(void) {
 	return (tsc_freq / 1000 / 1000);
 }
 
-uint64_t get_proc_total(void) {
+unsigned long get_proc_total(void) {
 	struct kinfo_proc *kp, *kpp;
 	int mib[3], count, error;
 	size_t len;