aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/cpulimit-with-glib-2.32.patch
blob: 4c0bbaac7c6c424e94295d86d966f0f5756e055f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 4a4794e041edf85cb67b9fbba66ad1a22fdcaaec Mon Sep 17 00:00:00 2001
From: Eric Bavier <bavier@posteo.net>
Date: Sat, 29 Jan 2022 00:10:20 -0600
Subject: [PATCH] Fixes linux build with glibc-2.32.

* cpulimit.c: Guard inclusion of <sys/sysctl.h> 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 <string.h>
 #include <sys/stat.h>
 #include <sys/time.h>
-#include <sys/sysctl.h>
 #include <sys/resource.h>
 #include <sys/types.h>
 #include <sys/wait.h>
 
 #ifdef __APPLE__ || __FREEBSD__
 #include <libgen.h>
+#include <sys/sysctl.h>
 #endif
 
 #include "process_group.h"
-- 
2.34.0

ate to 4.4.2.Tobias Geerinckx-Rice 2023-07-16gnu: lensfun: Update to 0.3.4.Tobias Geerinckx-Rice 2023-07-18gnu: Deprecate `texlive-tiny'.Nicolas Goaziou 2023-07-04gnu: darktable: Update to 4.4.1.John Kehayias 2023-06-22gnu: darktable: Update to 4.4.0.John Kehayias 2023-04-12gnu: darktable: Improve package style.Nicolas Goaziou 2023-04-12gnu: darktable: Update to 4.2.1.Alex Devaure 2023-04-11gnu: libexif: Update home page.Maxim Cournoyer 2023-04-11gnu: libexif: Update to 0.6.24. [fixes CVE-2020-0198, CVE-2020-0452]Bruno Victal 2023-03-04gnu: Remove and deprecate tidy for tidy-htmlMorgan Smith 2023-02-19gnu: Use HTTPS package home pages wherever possible.Tobias Geerinckx-Rice 2023-01-16gnu: perl-image-exiftool: Update to 12.50, use new package style.kiasoc5 2023-01-10gnu: darktable: Update to 4.2.0.Alex Devaure 2022-12-09gnu: rawtherapee: Update to 5.9.Sharlatan Hellseher 2022-11-14gnu: Add librtprocess.Sharlatan Hellseher 2022-10-23gnu: libgphoto2: Update to 2.5.30.Tobias Geerinckx-Rice 2022-10-22gnu: darktable: Update to 4.0.1.John Kehayias 2022-09-01gnu: Remove libraw-0.18.Brendan Tildesley 2022-07-31gnu: qttools: Rename to qttools-5.Maxim Cournoyer 2022-07-24gnu: hugin: Remove input labels.Tobias Geerinckx-Rice 2022-07-24gnu: hugin: Update to 2021.0.0.Tobias Geerinckx-Rice 2022-07-24gnu: libpano13: Update to 2.9.21.Tobias Geerinckx-Rice 2022-07-07gnu: darktable: Update to 4.0.0.John Kehayias