From 4a4794e041edf85cb67b9fbba66ad1a22fdcaaec Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Sat, 29 Jan 2022 00:10:20 -0600 Subject: [PATCH] Fixes linux build with glibc-2.32. * cpulimit.c: Guard inclusion of which is needed only for __APPLE__ and is deprecated and unavailable starting with glibc-2.32. --- src/cpulimit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Submitted upstream at https://github.com/opsengine/cpulimit/pull/105 diff --git a/src/cpulimit.c b/src/cpulimit.c index 50eabea..be8cf22 100644 --- a/src/cpulimit.c +++ b/src/cpulimit.c @@ -38,13 +38,13 @@ #include #include #include -#include #include #include #include #ifdef __APPLE__ || __FREEBSD__ #include +#include #endif #include "process_group.h" -- 2.34.0 > Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
AgeCommit message (2023-05-11tests: vnstat: Avoid call to 'getservbyname'....This would break "make as-derivation" because /etc/services is unavailable in the build environment: [ 38/ 80] loading... 95.0% of 40 filesBacktrace: In guix/build/compile.scm: 249:8 19 (compile-files "." "/gnu/store/s5nadqd6hkzivkxp33svwqslfn608ng5-guix-system-tests" ("gnu/tests/audio.scm" "gnu/tests/base.scm" "gnu/tests/ci.scm" "gnu/tests/cups.scm" "gnu/tests/d…" …) …) […] In unknown file: 0 (getserv "discard" "tcp") ERROR: In procedure getserv: In procedure getserv: no such service discard builder for `/gnu/store/…-guix-system-tests.drv' failed with exit code 1 * gnu/tests/vnstat.scm (run-vnstat-test): Hard-code 'guest-port' instead of calling 'getservbyname'. Ludovic Courtès
2023-05-11tests: Add vnstat tests....* gnu/tests/vnstat.scm: New file. * gnu/local.mk: Register it. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Bruno Victal