File: 01_drop-include-sysctl.h.patch

package info (click to toggle)
xfce4-netload-plugin 1.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,316 kB
  • sloc: sh: 11,420; ansic: 2,768; makefile: 103
file content (24 lines) | stat: -rw-r--r-- 758 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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(-)

diff --git a/panel-plugin/os.h b/panel-plugin/os.h
index 473c2a4..9a5c544 100644
--- a/panel-plugin/os.h
+++ b/panel-plugin/os.h
@@ -170,7 +170,6 @@
 #elif __linux__             /* L I N U X */
 #  include <stdio.h>
 #  include <sys/param.h>
-#  include <sys/sysctl.h>
 #  include <stdlib.h>
 #  include <stdarg.h>
 #  include <unistd.h>