logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

icedtea-jdk-musl.patch (4861B)


  1. diff -ru openjdk.orig/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp openjdk/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp
  2. --- openjdk.orig/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp 2014-06-12 20:14:44.000000000 +0000
  3. +++ openjdk/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp 2014-07-15 07:19:52.186682096 +0000
  4. @@ -46,6 +46,8 @@
  5. #include "zip.h"
  6. +#define uchar unsigned char
  7. +
  8. #ifdef NO_ZLIB
  9. inline bool jar::deflate_bytes(bytes& head, bytes& tail) {
  10. diff -ru openjdk.orig/jdk/src/share/native/com/sun/java/util/jar/pack/zip.h openjdk/jdk/src/share/native/com/sun/java/util/jar/pack/zip.h
  11. --- openjdk.orig/jdk/src/share/native/com/sun/java/util/jar/pack/zip.h 2014-06-12 20:14:44.000000000 +0000
  12. +++ openjdk/jdk/src/share/native/com/sun/java/util/jar/pack/zip.h 2014-07-15 07:19:52.186682096 +0000
  13. @@ -23,9 +23,7 @@
  14. * questions.
  15. */
  16. -#define ushort unsigned short
  17. -#define uint unsigned int
  18. -#define uchar unsigned char
  19. +#include <sys/types.h>
  20. struct unpacker;
  21. diff -ru openjdk.orig/jdk/src/share/native/sun/awt/medialib/mlib_types.h openjdk/jdk/src/share/native/sun/awt/medialib/mlib_types.h
  22. --- openjdk.orig/jdk/src/share/native/sun/awt/medialib/mlib_types.h 2014-06-12 20:14:44.000000000 +0000
  23. +++ openjdk/jdk/src/share/native/sun/awt/medialib/mlib_types.h 2014-07-15 07:19:52.186682096 +0000
  24. @@ -27,6 +27,7 @@
  25. #ifndef MLIB_TYPES_H
  26. #define MLIB_TYPES_H
  27. +#include <stddef.h> /* for NULL */
  28. #include <limits.h>
  29. #if defined(_MSC_VER)
  30. #include <float.h> /* for FLT_MAX and DBL_MAX */
  31. diff -ru openjdk.orig/jdk/src/solaris/native/java/net/Inet4AddressImpl.c openjdk/jdk/src/solaris/native/java/net/Inet4AddressImpl.c
  32. --- openjdk.orig/jdk/src/solaris/native/java/net/Inet4AddressImpl.c 2014-06-12 20:14:44.000000000 +0000
  33. +++ openjdk/jdk/src/solaris/native/java/net/Inet4AddressImpl.c 2014-07-15 07:19:52.186682096 +0000
  34. @@ -47,7 +47,7 @@
  35. #include "java_net_Inet4AddressImpl.h"
  36. -#if defined(__GLIBC__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 601104))
  37. +#if defined(__linux__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 601104))
  38. #define HAS_GLIBC_GETHOSTBY_R 1
  39. #endif
  40. diff -ru openjdk.orig/jdk/src/solaris/native/java/net/NetworkInterface.c openjdk/jdk/src/solaris/native/java/net/NetworkInterface.c
  41. --- openjdk.orig/jdk/src/solaris/native/java/net/NetworkInterface.c 2014-06-12 20:14:44.000000000 +0000
  42. +++ openjdk/jdk/src/solaris/native/java/net/NetworkInterface.c 2014-07-15 07:19:52.186682096 +0000
  43. @@ -47,7 +47,6 @@
  44. #ifdef __linux__
  45. #include <sys/ioctl.h>
  46. -#include <bits/ioctls.h>
  47. #include <sys/utsname.h>
  48. #include <stdio.h>
  49. #endif
  50. diff -ru openjdk.orig/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c openjdk/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c
  51. --- openjdk.orig/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c 2014-06-12 20:14:44.000000000 +0000
  52. +++ openjdk/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c 2014-07-15 07:19:52.190015524 +0000
  53. @@ -35,7 +35,6 @@
  54. #endif
  55. #ifdef __linux__
  56. #include <unistd.h>
  57. -#include <sys/sysctl.h>
  58. #include <sys/utsname.h>
  59. #include <netinet/ip.h>
  60. diff -ru openjdk.orig/jdk/src/solaris/native/java/net/PlainSocketImpl.c openjdk/jdk/src/solaris/native/java/net/PlainSocketImpl.c
  61. --- openjdk.orig/jdk/src/solaris/native/java/net/PlainSocketImpl.c 2014-06-12 20:14:44.000000000 +0000
  62. +++ openjdk/jdk/src/solaris/native/java/net/PlainSocketImpl.c 2014-07-15 07:19:52.190015524 +0000
  63. @@ -43,7 +43,6 @@
  64. #endif
  65. #ifdef __linux__
  66. #include <unistd.h>
  67. -#include <sys/sysctl.h>
  68. #endif
  69. #include "jvm.h"
  70. diff -ru openjdk.orig/jdk/src/solaris/native/java/net/linux_close.c openjdk/jdk/src/solaris/native/java/net/linux_close.c
  71. --- openjdk.orig/jdk/src/solaris/native/java/net/linux_close.c 2014-06-12 20:14:44.000000000 +0000
  72. +++ openjdk/jdk/src/solaris/native/java/net/linux_close.c 2014-07-15 07:22:17.609355950 +0000
  73. @@ -75,7 +75,7 @@
  74. #ifdef _AIX
  75. static int sigWakeup = (SIGRTMAX - 1);
  76. #else
  77. -static int sigWakeup = (__SIGRTMAX - 2);
  78. +static int sigWakeup;
  79. #endif
  80. /*
  81. @@ -148,6 +148,9 @@
  82. /*
  83. * Setup the signal handler
  84. */
  85. +#ifndef __AIX
  86. + sigWakeup = SIGRTMAX - 2;
  87. +#endif
  88. sa.sa_handler = sig_wakeup;
  89. sa.sa_flags = 0;
  90. sigemptyset(&sa.sa_mask);
  91. diff -ru openjdk.orig/jdk/src/solaris/native/sun/nio/ch/NativeThread.c openjdk/jdk/src/solaris/native/sun/nio/ch/NativeThread.c
  92. --- openjdk.orig/jdk/src/solaris/native/sun/nio/ch/NativeThread.c 2014-06-12 20:14:44.000000000 +0000
  93. +++ openjdk/jdk/src/solaris/native/sun/nio/ch/NativeThread.c 2014-07-15 07:19:52.190015524 +0000
  94. @@ -38,7 +38,7 @@
  95. #include <sys/signal.h>
  96. /* Also defined in src/solaris/native/java/net/linux_close.c */
  97. -#define INTERRUPT_SIGNAL (__SIGRTMAX - 2)
  98. +#define INTERRUPT_SIGNAL (SIGRTMAX - 2)
  99. static void
  100. nullHandler(int sig)