You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/cpulimit/files/cpulimit-2.8-inline-func.patch

12 lines
454 B

--- a/cpulimit.c 2023-02-06 19:07:19.450894524 +0300
+++ b/cpulimit.c 2023-02-06 19:07:28.834337797 +0300
@@ -125,7 +125,7 @@
//return ta-tb in microseconds (no overflow checks!)
-inline long timediff(const struct timespec *ta,const struct timespec *tb) {
+static long timediff(const struct timespec *ta,const struct timespec *tb) {
unsigned long us = (ta->tv_sec-tb->tv_sec)*1000000 + (ta->tv_nsec/1000 - tb->tv_nsec/1000);
return us;
}