From 5a60c131d00032ea6a22f53c42955ce7d6149688 Mon Sep 17 00:00:00 2001 From: "Taro L. Saito" Date: Thu, 27 Sep 2012 11:09:32 +0900 Subject: [PATCH] Fixes issue #6 --- pom.xml | 2 +- src/main/java/org/xerial/snappy/OSInfo.java | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index c019165..af92bc5 100755 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 org.xerial.snappy snappy-java - 1.0.5-M1 + 1.0.5-M2-SNAPSHOT Snappy for Java snappy-java: A fast compression/decompression library bundle diff --git a/src/main/java/org/xerial/snappy/OSInfo.java b/src/main/java/org/xerial/snappy/OSInfo.java index ac10b69..95682fa 100755 --- a/src/main/java/org/xerial/snappy/OSInfo.java +++ b/src/main/java/org/xerial/snappy/OSInfo.java @@ -77,7 +77,10 @@ public class OSInfo catch (InterruptedException e) { // ignored: fall back to "arm" arch (soft-float ABI) } - } + } + else if(getOSName().equals("Mac") && osArch.equals("universal")) { + return "x86_64"; // Fix for openjdk7 + } return translateArchNameToFolderName(osArch); }