From d45b688b7e782181b2339c9907cc373c5bb0072c Mon Sep 17 00:00:00 2001 From: "Taro L. Saito" Date: Wed, 6 Nov 2013 20:52:43 +0900 Subject: [PATCH] Fixes #55: Add mapping for sparc and rename native lib folder for SunOS:x86_64 --- lib/org/xerial/snappy/OSInfo.class | Bin 3321 -> 3347 bytes src/main/java/org/xerial/snappy/OSInfo.java | 3 ++- .../SunOS/{sparc => x86_64}/libsnappyjava.so | Bin 3 files changed, 2 insertions(+), 1 deletion(-) rename src/main/resources/org/xerial/snappy/native/SunOS/{sparc => x86_64}/libsnappyjava.so (100%) diff --git a/lib/org/xerial/snappy/OSInfo.class b/lib/org/xerial/snappy/OSInfo.class index 3052227836339ad60e60735ddeaa8bcf73ebbb67..46da270339e3c5199300b538470ae897ba4e2c43 100755 GIT binary patch delta 1159 zcmYk4+iz4=6vlt2?abM8x=nCQ1qzyAWK7hdj6#COQU(hmP!y|FMyw12lmeZp9ZC_w zp`vmVv>YYsvp#qO+G^3Fc*RS-)d!#S(dge`OpM>2W-@b5vex(Qwbr*UYyC4fY%Wdx zH+cm}@oT_+}Xvn!yN-G)7m>~*HkCm#@ybEaVEcm7GkK%knU%h+ca zH0*amLxuy+KV>-R^R(fR;jrNuL&B$XGU$@t7T^qqEyBA2Q+LwOB5>RliVN zl+X63gnPzTsQTcYJSI!~K>i&Rc%qN6Qms^{(Fh_QFt6>K)mfN8Oe#4=g|Nb2!>C zzy24d!|8^OXr$P$Lxl4px78Jf#@9ra)R$JPwGdUGB#g&eu{zcyiIQ~~HsD`I8($YK2J|e{%y7EZp zl)km{lwPOO-S_upS~g!|@i>Vw67f_#HNhQSV}w(UJ*8zcI1z7+w^rctDr}3lRaRG2 zVLG0!tgfuWd#kX$3Rlg*Q5|IFs2Q#ozD0ADqA7gKF1)i0-|@?AxxhM zXN>$=#kY!n#W}@yhUD3NZ+2z+^JcxE&iz^Fx4B~T<6y4!kG1G)HdthaLh*#=D%WhT zYi@8;vxSJwEzJP8E&QR7+gjJCsUo7;OvEejO)DAXj)fK0+$CaR#}frHx1~WdM73rs z)$eMi(Zc7pwrK7#Y>`#g6l?F&+-Jn=^Ign+pn1q6%_xs;o@k!(%v+SXtm?VuCw|ua z!mpZDtk(R-HO=pgX|^TRE1P2V@y>*(m%DWq8CxqY(EPy*i=3$2;fCAWnwrC_-9%%# zyGv+Yi$B%8Jg;xIY4q?kTJgV4qDq|jt%V7(D4VWPySjIfhwG&761{K-}^JV6a@)Ul84bg)C# zD0_sppBUXz>5=E$%V`eDHOTWws^(=EH5%3F*buEKFMV4dBOR?&=3Xhk9}U~-;Cd~RVsAz``a7M?v5@Q;^WHOR diff --git a/src/main/java/org/xerial/snappy/OSInfo.java b/src/main/java/org/xerial/snappy/OSInfo.java index 6c612b8..575a9eb 100755 --- a/src/main/java/org/xerial/snappy/OSInfo.java +++ b/src/main/java/org/xerial/snappy/OSInfo.java @@ -58,6 +58,7 @@ public class OSInfo archMapping.put("amd64", X86_64); archMapping.put("em64t", X86_64); archMapping.put("universal", X86_64); // Needed for openjdk7 in Mac + archMapping.put("sparc", X86_64); // Itenium 64-bit mappings archMapping.put(IA64, IA64); @@ -69,7 +70,7 @@ public class OSInfo // PowerPC mappings archMapping.put(PPC, PPC); - archMapping.put("pwoer", PPC); + archMapping.put("power", PPC); archMapping.put("powerpc", PPC); archMapping.put("power_pc", PPC); archMapping.put("power_rs", PPC); diff --git a/src/main/resources/org/xerial/snappy/native/SunOS/sparc/libsnappyjava.so b/src/main/resources/org/xerial/snappy/native/SunOS/x86_64/libsnappyjava.so similarity index 100% rename from src/main/resources/org/xerial/snappy/native/SunOS/sparc/libsnappyjava.so rename to src/main/resources/org/xerial/snappy/native/SunOS/x86_64/libsnappyjava.so