summaryrefslogtreecommitdiffstats
path: root/recipes-core/openjdk/patches-openjdk-8/2010-Remove-usage-of-sys-sysctl.h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/openjdk/patches-openjdk-8/2010-Remove-usage-of-sys-sysctl.h.patch')
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2010-Remove-usage-of-sys-sysctl.h.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes-core/openjdk/patches-openjdk-8/2010-Remove-usage-of-sys-sysctl.h.patch b/recipes-core/openjdk/patches-openjdk-8/2010-Remove-usage-of-sys-sysctl.h.patch
new file mode 100644
index 0000000..f6d7681
--- /dev/null
+++ b/recipes-core/openjdk/patches-openjdk-8/2010-Remove-usage-of-sys-sysctl.h.patch
@@ -0,0 +1,39 @@
1From 3ed9b4a109cf2f31b97ab8ba317d67886452523c Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Thu, 13 Aug 2020 17:59:42 +0200
4Subject: [PATCH] Remove usage of sys/sysctl.h
5
6This header has been removed in glibc 2.32, and isn't used for
7anything.
8
9Upstream-Status: Pending
10Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11---
12 jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c | 1 -
13 jdk/src/solaris/native/java/net/PlainSocketImpl.c | 1 -
14 2 files changed, 2 deletions(-)
15
16diff --git a/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c b/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c
17index cd15654e..4d8abe03 100644
18--- a/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c
19+++ b/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c
20@@ -41,7 +41,6 @@
21 #endif
22 #ifdef __linux__
23 #include <unistd.h>
24-#include <sys/sysctl.h>
25 #include <sys/utsname.h>
26 #include <netinet/ip.h>
27
28diff --git a/jdk/src/solaris/native/java/net/PlainSocketImpl.c b/jdk/src/solaris/native/java/net/PlainSocketImpl.c
29index 170957e7..9aafbc09 100644
30--- a/jdk/src/solaris/native/java/net/PlainSocketImpl.c
31+++ b/jdk/src/solaris/native/java/net/PlainSocketImpl.c
32@@ -43,7 +43,6 @@
33 #endif
34 #ifdef __linux__
35 #include <unistd.h>
36-#include <sys/sysctl.h>
37 #endif
38
39 #include "jvm.h"