mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
aff852ecef
- 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.
15 lines
394 B
C++
15 lines
394 B
C++
--- src/vm/properties.cpp.orig 2012-09-03 12:10:00.000000000 -0400
|
|
+++ src/vm/properties.cpp 2012-10-04 14:34:15.000000000 -0400
|
|
@@ -74,7 +74,11 @@
|
|
|
|
p = MNEW(char, 4096);
|
|
|
|
+#if defined(__FreeBSD__)
|
|
+ if (os::readlink("/proc/curproc/file", p, 4095) == -1)
|
|
+#else
|
|
if (os::readlink("/proc/self/exe", p, 4095) == -1)
|
|
+#endif
|
|
os::abort_errno("readlink failed");
|
|
|
|
/* We have a path like:
|