summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/freenet/files/freenet-0.7.5_p1384-libraryloader-just-try-loading.patch')
-rw-r--r--net-p2p/freenet/files/freenet-0.7.5_p1384-libraryloader-just-try-loading.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/net-p2p/freenet/files/freenet-0.7.5_p1384-libraryloader-just-try-loading.patch b/net-p2p/freenet/files/freenet-0.7.5_p1384-libraryloader-just-try-loading.patch
new file mode 100644
index 000000000000..ffe9354dc846
--- /dev/null
+++ b/net-p2p/freenet/files/freenet-0.7.5_p1384-libraryloader-just-try-loading.patch
@@ -0,0 +1,17 @@
+--- freenet-0.7.5_p1384/src/freenet/support/LibraryLoader.java.orig 2011-07-29 17:32:37.000000000 +0200
++++ freenet-0.7.5_p1384/src/freenet/support/LibraryLoader.java 2011-07-29 17:35:02.000000000 +0200
+@@ -48,12 +48,11 @@
+ final String libraryNameWithPrefixAndArchAndSuffix = libraryNameWithPrefixAndArch + prefix;
+ String resourceName = path + libraryNameWithPrefixAndArchAndSuffix;
+
+- File nativeLib = new File((System.getProperty("java.library.path")) + "/lib" + libraryName + prefix);
+- if (nativeLib.exists()) {
++ try {
+ System.out.println("Attempting to load the NativeThread library ["+libraryName+']');
+ System.loadLibrary(libraryName);
+ success = true;
+- } else {
++ } catch(UnsatisfiedLinkError ule) {
+ try {
+ // Get the resource
+ URL resource = LibraryLoader.class.getResource(resourceName);