diff options
author | glewis <glewis@FreeBSD.org> | 2005-10-13 23:12:26 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2005-10-13 23:12:26 +0800 |
commit | 9b0abd41ea8e84601e04788a249d586e30d55a26 (patch) | |
tree | 0084a0b202b08ec66fe5418d167e4ea13aa0cae5 /java | |
parent | fd1eb77b7a4f73bf208c6758748b6074ff781f3f (diff) | |
download | freebsd-ports-gnome-9b0abd41ea8e84601e04788a249d586e30d55a26.tar.gz freebsd-ports-gnome-9b0abd41ea8e84601e04788a249d586e30d55a26.tar.zst freebsd-ports-gnome-9b0abd41ea8e84601e04788a249d586e30d55a26.zip |
. Fix javaws.
Approved by: phantom (maintainer)
Diffstat (limited to 'java')
-rw-r--r-- | java/jdk15/files/patch-deploy::native::msgString.c | 13 | ||||
-rw-r--r-- | java/jdk15/files/patch-deploy::native::system_md.c | 13 | ||||
-rw-r--r-- | java/jdk15/files/patch-deploy::native::system_md.h | 28 | ||||
-rw-r--r-- | java/jdk16/files/patch-deploy::native::msgString.c | 13 | ||||
-rw-r--r-- | java/jdk16/files/patch-deploy::native::system_md.c | 13 | ||||
-rw-r--r-- | java/jdk16/files/patch-deploy::native::system_md.h | 28 |
6 files changed, 108 insertions, 0 deletions
diff --git a/java/jdk15/files/patch-deploy::native::msgString.c b/java/jdk15/files/patch-deploy::native::msgString.c new file mode 100644 index 000000000000..8021bcfb9f8a --- /dev/null +++ b/java/jdk15/files/patch-deploy::native::msgString.c @@ -0,0 +1,13 @@ +$FreeBSD$ + +--- ../../deploy/src/javaws/share/native/msgString.c 19 May 2005 19:55:19 -0000 1.2 ++++ ../../deploy/src/javaws/share/native/msgString.c 5 Oct 2005 17:59:39 -0000 +@@ -146,7 +146,7 @@ + if (value == NULL) { + value = defaultMessage; + } +-#ifdef __OpenBSD__ /* XXXBSD: DISABLE_LOCALE */ ++#if defined(__OpenBSD__) || defined(__FreeBSD__) /* XXXBSD: DISABLE_LOCALE */ + v2 = strdup(value); + #else + len2 = DecodeMessage(value, wArray); diff --git a/java/jdk15/files/patch-deploy::native::system_md.c b/java/jdk15/files/patch-deploy::native::system_md.c new file mode 100644 index 000000000000..d6fc6938e78c --- /dev/null +++ b/java/jdk15/files/patch-deploy::native::system_md.c @@ -0,0 +1,13 @@ +$FreeBSD$ + +--- ../../deploy/src/javaws/solaris/native/system_md.c 19 May 2005 19:38:24 -0000 1.4 ++++ ../../deploy/src/javaws/solaris/native/system_md.c 5 Oct 2005 17:59:39 -0000 +@@ -10,7 +10,7 @@ + * unicode conversion for now at all. It means that japanese, korean, + * chinese, etc locales are not available. + */ +-#if defined(__OpenBSD__) ++#if defined(__OpenBSD__) || defined(__FreeBSD__) + #define DISABLE_LOCALE 1 + #endif + diff --git a/java/jdk15/files/patch-deploy::native::system_md.h b/java/jdk15/files/patch-deploy::native::system_md.h new file mode 100644 index 000000000000..9f2043021b08 --- /dev/null +++ b/java/jdk15/files/patch-deploy::native::system_md.h @@ -0,0 +1,28 @@ +$FreeBSD$ + +--- ../../deploy/src/javaws/solaris/native/system_md.h 8 Nov 2004 22:26:54 -0000 1.1.1.1 ++++ ../../deploy/src/javaws/solaris/native/system_md.h 5 Oct 2005 17:59:39 -0000 +@@ -35,6 +35,23 @@ + #ifdef LINUX + #define PLATFORM "Linux" + #define ARCH "i386" ++#elif _ALLBSD_SOURCE /* LINUX */ ++#ifdef __FreeBSD__ ++#define PLATFORM "FreeBSD" ++#elif __NetBSD__ ++#define PLATFORM "NetBSD" ++#elif __OpenBSD__ ++#define PLATFORM "OpenBSD" ++#elif __DragonFly__ ++#define PLATFORM "DragonFly" ++#endif ++#ifdef __amd64__ ++#define ARCH "amd64" ++#elif __i386__ ++#define ARCH "i386" ++#else ++#error "Unsupported architecture" ++#endif + #else /* LINUX */ + #define PLATFORM "SunOS" + #ifdef __i386 diff --git a/java/jdk16/files/patch-deploy::native::msgString.c b/java/jdk16/files/patch-deploy::native::msgString.c new file mode 100644 index 000000000000..8021bcfb9f8a --- /dev/null +++ b/java/jdk16/files/patch-deploy::native::msgString.c @@ -0,0 +1,13 @@ +$FreeBSD$ + +--- ../../deploy/src/javaws/share/native/msgString.c 19 May 2005 19:55:19 -0000 1.2 ++++ ../../deploy/src/javaws/share/native/msgString.c 5 Oct 2005 17:59:39 -0000 +@@ -146,7 +146,7 @@ + if (value == NULL) { + value = defaultMessage; + } +-#ifdef __OpenBSD__ /* XXXBSD: DISABLE_LOCALE */ ++#if defined(__OpenBSD__) || defined(__FreeBSD__) /* XXXBSD: DISABLE_LOCALE */ + v2 = strdup(value); + #else + len2 = DecodeMessage(value, wArray); diff --git a/java/jdk16/files/patch-deploy::native::system_md.c b/java/jdk16/files/patch-deploy::native::system_md.c new file mode 100644 index 000000000000..d6fc6938e78c --- /dev/null +++ b/java/jdk16/files/patch-deploy::native::system_md.c @@ -0,0 +1,13 @@ +$FreeBSD$ + +--- ../../deploy/src/javaws/solaris/native/system_md.c 19 May 2005 19:38:24 -0000 1.4 ++++ ../../deploy/src/javaws/solaris/native/system_md.c 5 Oct 2005 17:59:39 -0000 +@@ -10,7 +10,7 @@ + * unicode conversion for now at all. It means that japanese, korean, + * chinese, etc locales are not available. + */ +-#if defined(__OpenBSD__) ++#if defined(__OpenBSD__) || defined(__FreeBSD__) + #define DISABLE_LOCALE 1 + #endif + diff --git a/java/jdk16/files/patch-deploy::native::system_md.h b/java/jdk16/files/patch-deploy::native::system_md.h new file mode 100644 index 000000000000..9f2043021b08 --- /dev/null +++ b/java/jdk16/files/patch-deploy::native::system_md.h @@ -0,0 +1,28 @@ +$FreeBSD$ + +--- ../../deploy/src/javaws/solaris/native/system_md.h 8 Nov 2004 22:26:54 -0000 1.1.1.1 ++++ ../../deploy/src/javaws/solaris/native/system_md.h 5 Oct 2005 17:59:39 -0000 +@@ -35,6 +35,23 @@ + #ifdef LINUX + #define PLATFORM "Linux" + #define ARCH "i386" ++#elif _ALLBSD_SOURCE /* LINUX */ ++#ifdef __FreeBSD__ ++#define PLATFORM "FreeBSD" ++#elif __NetBSD__ ++#define PLATFORM "NetBSD" ++#elif __OpenBSD__ ++#define PLATFORM "OpenBSD" ++#elif __DragonFly__ ++#define PLATFORM "DragonFly" ++#endif ++#ifdef __amd64__ ++#define ARCH "amd64" ++#elif __i386__ ++#define ARCH "i386" ++#else ++#error "Unsupported architecture" ++#endif + #else /* LINUX */ + #define PLATFORM "SunOS" + #ifdef __i386 |