From 1949c8b20612d476f64586f3a3812b051774a320 Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Sat, 29 Jan 2022 00:53:31 -0600 Subject: gnu: cpulimit: Fix build with glibc-2.32. * gnu/packages/patches/cpulimit-with-glib-2.32.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/admin.scm (cpulimit)[source]: Use it. --- gnu/packages/patches/cpulimit-with-glib-2.32.patch | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 gnu/packages/patches/cpulimit-with-glib-2.32.patch (limited to 'gnu/packages/patches') diff --git a/gnu/packages/patches/cpulimit-with-glib-2.32.patch b/gnu/packages/patches/cpulimit-with-glib-2.32.patch new file mode 100644 index 0000000000..4c0bbaac7c --- /dev/null +++ b/gnu/packages/patches/cpulimit-with-glib-2.32.patch @@ -0,0 +1,35 @@ +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 + -- cgit v1.2.3