Added ebuilds for eclipse-sdk 3.5 from gentoo-bugs

This commit is contained in:
2009-11-01 19:56:40 +00:00
parent ab73eab1c9
commit 648575cae5
27 changed files with 2025 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
# patch from gcj-overlay, not sure if by geki himself
# removes QA warning about strict-aliasing
--- callback.c.orig 2006-12-12 17:25:26.000000000 +0100
+++ callback.c 2006-12-12 18:11:34.000000000 +0100
@@ -250,12 +250,16 @@
#ifdef JNI_VERSION_1_2
if (IS_JNI_1_2) {
- (*jvm)->GetEnv(jvm, (void **)&env, JNI_VERSION_1_2);
+ /* http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/invocation.html */
+ /* jint GetEnv(JavaVM *vm, void **env, jint version); */
+ (*jvm)->GetEnv(jvm, (void *)&env, JNI_VERSION_1_2);
}
#endif
if (env == NULL) {
- (*jvm)->AttachCurrentThread(jvm, (void **)&env, NULL);
+ /* http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/invocation.html */
+ /* jint AttachCurrentThread(JavaVM *vm, JNIEnv **p_env, void *thr_args); */
+ (*jvm)->AttachCurrentThread(jvm, (void *)&env, NULL);
if (IS_JNI_1_2) detach = 1;
}