diff options
author | Oliver Kiddle <opk@zsh.org> | 2024-09-18 10:53:41 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2024-09-18 11:08:03 +0200 |
commit | ad4afde923bc6e809795c99544f5937d159c6bb9 (patch) | |
tree | b132f0cefaab4a074645c0a99ba3ea1a3447d711 | |
parent | 8ad625d90c2df0246aa921c51d248a3b28f43da9 (diff) | |
download | zsh-ad4afde923bc6e809795c99544f5937d159c6bb9.tar.gz zsh-ad4afde923bc6e809795c99544f5937d159c6bb9.tar.xz zsh-ad4afde923bc6e809795c99544f5937d159c6bb9.zip |
53092: silence deprecated header warning on older Linux systems
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Src/init.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 00a89d48f..7ca08cf8c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2024-09-18 Oliver Kiddle <opk@zsh.org> + + * 53092: Src/init.c: silence deprecated header warning on Linux + 2024-09-14 Bart Schaefer <schaefer@zsh.org> * 53088: Src/exec.c, Src/jobs.c, Test/A01grammar.ztst, diff --git a/Src/init.c b/Src/init.c index 2f914f96b..61f759ded 100644 --- a/Src/init.c +++ b/Src/init.c @@ -36,7 +36,7 @@ #include "version.h" -#ifdef HAVE_SYS_SYSCTL_H +#if defined(HAVE_SYS_SYSCTL_H) && !defined(__linux) #include <sys/sysctl.h> #endif |