Package: xfce4-netload-plugin / 1.3.2-1

01_drop-include-sysctl.h.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Adam Borowski <kilobyte@angband.pl>
Date: Sat, 8 Dec 2018 17:06:10 +0100
Subject: drop #include <sys/sysctl.h> on Linux

The sysctl syscall is gone for ages -- depending on architecture, it will
either spam syslog at runtime or fail to compile at all.  As we don't
actually call it, the former is benign... but the latter is fatal on
new architectures.
---
 panel-plugin/os.h | 1 -
 1 file changed, 1 deletion(-)

--- a/panel-plugin/os.h
+++ b/panel-plugin/os.h
@@ -147,7 +147,6 @@
 #elif __OpenBSD__ || __MicroBSD__           /* O P E N B S D */
 #  include <stdio.h>
 #  include <sys/param.h>
-#  include <sys/sysctl.h>
 #  include <stdlib.h>
 #  include <stdarg.h>
 #  include <unistd.h>