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 2022-07-19 08:32:28.081266274 -0400
+++ b/panel-plugin/os.h 2022-07-19 08:32:28.077266286 -0400
@@ -149,7 +149,6 @@
#elif defined (__OpenBSD__) || defined (__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>
|