summaryrefslogtreecommitdiff
path: root/java/cacao/files/patch-src__cacao__cacao.cpp
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2012-10-05 20:40:39 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2012-10-05 20:40:39 +0000
commitaff852ecefa7e1f578aac61391817ef208031165 (patch)
treeb24adc88a423563cc6bc7f67ef613cd5df131f7a /java/cacao/files/patch-src__cacao__cacao.cpp
parent- Update to 4.2 build2007. (diff)
- Update to 1.6.0.
- Reset maintainership. See ports/164941. - Make it as amd64 and i386 only. Other architectures needs porting. - Reduce Makefile headers, add licenses, and convert to optionsNG. - Add an option to build with native JDK. When it is not selected, GCJ is used instead. Turned on by default.
Notes
Notes: svn path=/head/; revision=305320
Diffstat (limited to 'java/cacao/files/patch-src__cacao__cacao.cpp')
-rw-r--r--java/cacao/files/patch-src__cacao__cacao.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/java/cacao/files/patch-src__cacao__cacao.cpp b/java/cacao/files/patch-src__cacao__cacao.cpp
new file mode 100644
index 000000000000..99980c72f0e1
--- /dev/null
+++ b/java/cacao/files/patch-src__cacao__cacao.cpp
@@ -0,0 +1,14 @@
+--- src/cacao/cacao.cpp.orig 2012-09-03 12:10:00.000000000 -0400
++++ src/cacao/cacao.cpp 2012-10-04 14:34:51.000000000 -0400
+@@ -90,7 +90,11 @@
+
+ path = (char*) os::malloc(sizeof(char) * 4096);
+
++# if defined(__FreeBSD__)
++ if (readlink("/proc/curproc/file", path, 4095) == -1) {
++# else
+ if (readlink("/proc/self/exe", path, 4095) == -1) {
++# endif
+ fprintf(stderr, "main: readlink failed: %s\n", strerror(errno));
+ os::abort();
+ }