diff options
| author | Richard Leitner <richard.leitner@skidata.com> | 2020-11-02 12:22:20 +0100 |
|---|---|---|
| committer | Richard Leitner <richard.leitner@skidata.com> | 2020-11-09 14:35:48 +0100 |
| commit | 7be4ddd753916403be46754fe5e1465ac0c08acc (patch) | |
| tree | faa5409816b275359e086a54b02dd9f82e8f3d2b /recipes-core/icedtea/openjdk-7-03b147 | |
| parent | 609b90efb763d1d896ab96202d00e2f51df64ff2 (diff) | |
| download | meta-java-warrior.tar.gz | |
icedtea-7: add fix for deprecated sys/sysctl.h includewarrior
As glibc deprecated sys/sysctl.h we use linux/sysctl.h for now.
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Cherry-picked-from: 9c61ac937e5c54e3ef34d41dda8f635209ac52b7
Diffstat (limited to 'recipes-core/icedtea/openjdk-7-03b147')
| -rw-r--r-- | recipes-core/icedtea/openjdk-7-03b147/icedtea-jdk-replace-sys-sysctl.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes-core/icedtea/openjdk-7-03b147/icedtea-jdk-replace-sys-sysctl.patch b/recipes-core/icedtea/openjdk-7-03b147/icedtea-jdk-replace-sys-sysctl.patch new file mode 100644 index 0000000..1c7a585 --- /dev/null +++ b/recipes-core/icedtea/openjdk-7-03b147/icedtea-jdk-replace-sys-sysctl.patch | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | --- openjdk/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c | ||
| 2 | +++ openjdk/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c | ||
| 3 | @@ -35,7 +35,7 @@ | ||
| 4 | #endif | ||
| 5 | #ifdef __linux__ | ||
| 6 | #include <unistd.h> | ||
| 7 | -#include <sys/sysctl.h> | ||
| 8 | +#include <linux/sysctl.h> | ||
| 9 | #include <sys/utsname.h> | ||
| 10 | #include <netinet/ip.h> | ||
| 11 | |||
| 12 | --- openjdk/jdk/src/solaris/native/java/net/PlainSocketImpl.c | ||
| 13 | +++ openjdk/jdk/src/solaris/native/java/net/PlainSocketImpl.c | ||
| 14 | @@ -43,7 +43,7 @@ | ||
| 15 | #endif | ||
| 16 | #ifdef __linux__ | ||
| 17 | #include <unistd.h> | ||
| 18 | -#include <sys/sysctl.h> | ||
| 19 | +#include <linux/sysctl.h> | ||
| 20 | #endif | ||
| 21 | |||
| 22 | #include "jvm.h" | ||
