freebsd-ports/java/cacao/files/patch-src__cacao__cacao.cpp
Jung-uk Kim aff852ecef - 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.
2012-10-05 20:40:39 +00:00

14 lines
445 B
C++

--- 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();
}