blob: 618ce26890c79dd39950da0f288d30f9c35619d2 [file] [log] [blame]
Brad Bishop26bdd442019-08-16 17:08:17 -04001From a763610719e7d7f6cdc45569b6fbfdb91bb7c87b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 27 Jul 2019 14:30:08 -0700
4Subject: [PATCH] Do not include syscrtl.h with glibc
5
6glibc 2.30 has deprecated it see [1]
7Fixes
8sys/sysctl.h:21:2: error: "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror,-W#warnings]
9
10[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=744e829637162bb7d5029632aacf341c64b86990
11
12Upstream-Status: Pending
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 src/helper/options.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/src/helper/options.c b/src/helper/options.c
19index 12755e010..4007e37f6 100644
20--- a/src/helper/options.c
21+++ b/src/helper/options.c
22@@ -34,7 +34,7 @@
23 #if IS_DARWIN
24 #include <libproc.h>
25 #endif
26-#ifdef HAVE_SYS_SYSCTL_H
27+#if defined(HAVE_SYS_SYSCTL_H) && !defined(__GLIBC__)
28 #include <sys/sysctl.h>
29 #endif
30 #if IS_WIN32 && !IS_CYGWIN
31--
322.22.0
33