mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
Migrate to EAPI8, building and compilation fixes. Closes: https://bugs.gentoo.org/686528 Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/29452 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
12 lines
454 B
Diff
12 lines
454 B
Diff
--- 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;
|
|
}
|