forked from andrius/gentoo-bootstrap
84 lines
3.7 KiB
Diff
84 lines
3.7 KiB
Diff
diff -Naur openjdk-8.265_p01/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp openjdk-8.265_p01-copy/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp
|
|
--- openjdk-8.265_p01/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp 2020-10-11 15:53:09.224010360 -0400
|
|
+++ openjdk-8.265_p01-copy/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp 2020-10-11 20:58:53.716019255 -0400
|
|
@@ -46,6 +46,8 @@
|
|
|
|
#include "zip.h"
|
|
|
|
+#define uchar unsigned char
|
|
+
|
|
#ifdef NO_ZLIB
|
|
|
|
inline bool jar::deflate_bytes(bytes& head, bytes& tail) {
|
|
diff -Naur openjdk-8.265_p01/jdk/src/share/native/com/sun/java/util/jar/pack/zip.h openjdk-8.265_p01-copy/jdk/src/share/native/com/sun/java/util/jar/pack/zip.h
|
|
--- openjdk-8.265_p01/jdk/src/share/native/com/sun/java/util/jar/pack/zip.h 2020-10-11 15:53:09.224010360 -0400
|
|
+++ openjdk-8.265_p01-copy/jdk/src/share/native/com/sun/java/util/jar/pack/zip.h 2020-10-11 20:59:15.072019265 -0400
|
|
@@ -23,9 +23,7 @@
|
|
* questions.
|
|
*/
|
|
|
|
-#define ushort unsigned short
|
|
-#define uint unsigned int
|
|
-#define uchar unsigned char
|
|
+#include <sys/types.h>
|
|
|
|
struct unpacker;
|
|
|
|
diff -Naur openjdk-8.265_p01/jdk/src/share/native/sun/awt/medialib/mlib_types.h openjdk-8.265_p01-copy/jdk/src/share/native/sun/awt/medialib/mlib_types.h
|
|
--- openjdk-8.265_p01/jdk/src/share/native/sun/awt/medialib/mlib_types.h 2020-10-11 15:53:09.236010360 -0400
|
|
+++ openjdk-8.265_p01-copy/jdk/src/share/native/sun/awt/medialib/mlib_types.h 2020-10-11 20:59:44.012019279 -0400
|
|
@@ -27,6 +27,7 @@
|
|
#ifndef MLIB_TYPES_H
|
|
#define MLIB_TYPES_H
|
|
|
|
+#include <stddef.h> /* for NULL */
|
|
#include <limits.h>
|
|
#if defined(_MSC_VER)
|
|
#include <float.h> /* for FLT_MAX and DBL_MAX */
|
|
diff -Naur openjdk-8.265_p01/jdk/src/solaris/native/java/net/Inet4AddressImpl.c openjdk-8.265_p01-copy/jdk/src/solaris/native/java/net/Inet4AddressImpl.c
|
|
--- openjdk-8.265_p01/jdk/src/solaris/native/java/net/Inet4AddressImpl.c 2020-10-11 15:53:09.308010360 -0400
|
|
+++ openjdk-8.265_p01-copy/jdk/src/solaris/native/java/net/Inet4AddressImpl.c 2020-10-11 21:00:21.952019297 -0400
|
|
@@ -47,7 +47,7 @@
|
|
|
|
#include "java_net_Inet4AddressImpl.h"
|
|
|
|
-#if defined(__GLIBC__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 601104))
|
|
+#if defined(__linux__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 601104))
|
|
#define HAS_GLIBC_GETHOSTBY_R 1
|
|
#endif
|
|
|
|
diff -Naur openjdk-8.265_p01/jdk/src/solaris/native/java/net/linux_close.c openjdk-8.265_p01-copy/jdk/src/solaris/native/java/net/linux_close.c
|
|
--- openjdk-8.265_p01/jdk/src/solaris/native/java/net/linux_close.c 2020-10-11 15:53:09.308010360 -0400
|
|
+++ openjdk-8.265_p01-copy/jdk/src/solaris/native/java/net/linux_close.c 2020-10-11 21:01:22.872019327 -0400
|
|
@@ -58,7 +58,7 @@
|
|
/*
|
|
* Signal to unblock thread
|
|
*/
|
|
-static int sigWakeup = (__SIGRTMAX - 2);
|
|
+static int sigWakeup;
|
|
|
|
/*
|
|
* fdTable holds one entry per file descriptor, up to a certain
|
|
@@ -147,6 +147,9 @@
|
|
/*
|
|
* Setup the signal handler
|
|
*/
|
|
+#ifndef __AIX
|
|
+ sigWakeup = SIGRTMAX - 2;
|
|
+#endif
|
|
sa.sa_handler = sig_wakeup;
|
|
sa.sa_flags = 0;
|
|
sigemptyset(&sa.sa_mask);
|
|
diff -Naur openjdk-8.265_p01/jdk/src/solaris/native/sun/nio/ch/NativeThread.c openjdk-8.265_p01-copy/jdk/src/solaris/native/sun/nio/ch/NativeThread.c
|
|
--- openjdk-8.265_p01/jdk/src/solaris/native/sun/nio/ch/NativeThread.c 2020-10-11 15:53:09.316010360 -0400
|
|
+++ openjdk-8.265_p01-copy/jdk/src/solaris/native/sun/nio/ch/NativeThread.c 2020-10-11 21:02:12.156019351 -0400
|
|
@@ -36,7 +36,7 @@
|
|
#include <pthread.h>
|
|
#include <sys/signal.h>
|
|
/* Also defined in net/linux_close.c */
|
|
- #define INTERRUPT_SIGNAL (__SIGRTMAX - 2)
|
|
+ #define INTERRUPT_SIGNAL (SIGRTMAX - 2)
|
|
#elif __solaris__
|
|
#include <thread.h>
|
|
#include <signal.h>
|