From 198cb3ebdd4d4ad7c7f70064eaaf1c1de34deea3 Mon Sep 17 00:00:00 2001 From: Suresh Srinivas Date: Tue, 4 Jun 2013 00:06:26 +0000 Subject: [PATCH] HADOOP-9481. Merge r1481191 from trunk git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1489239 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../org/apache/hadoop/io/compress/snappy/SnappyCompressor.c | 3 ++- .../org/apache/hadoop/io/compress/snappy/SnappyDecompressor.c | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 6bf0444dda9..25cf12bd83b 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -207,6 +207,9 @@ Release 2.1.0-beta - UNRELEASED (which in turn throws SIGABRT) causing client crashes. (Colin Patrick McCabe via atm) + HADOOP-9481. Broken conditional logic with HADOOP_SNAPPY_LIBRARY. (Vadim + Bondarev via atm) + BREAKDOWN OF HADOOP-8562 SUBTASKS AND RELATED JIRAS HADOOP-8924. Hadoop Common creating package-info.java must not depend on diff --git a/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/snappy/SnappyCompressor.c b/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/snappy/SnappyCompressor.c index e82362abba0..f10732f3ab2 100644 --- a/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/snappy/SnappyCompressor.c +++ b/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/snappy/SnappyCompressor.c @@ -17,6 +17,8 @@ */ +#include "org_apache_hadoop_io_compress_snappy.h" + #if defined HADOOP_SNAPPY_LIBRARY #include @@ -28,7 +30,6 @@ #include "config.h" #endif // UNIX -#include "org_apache_hadoop_io_compress_snappy.h" #include "org_apache_hadoop_io_compress_snappy_SnappyCompressor.h" #define JINT_MAX 0x7fffffff diff --git a/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/snappy/SnappyDecompressor.c b/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/snappy/SnappyDecompressor.c index 74f3c0c93f3..8cee103d15e 100644 --- a/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/snappy/SnappyDecompressor.c +++ b/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/snappy/SnappyDecompressor.c @@ -16,6 +16,7 @@ * limitations under the License. */ +#include "org_apache_hadoop_io_compress_snappy.h" #if defined HADOOP_SNAPPY_LIBRARY @@ -24,11 +25,10 @@ #include #ifdef UNIX -#include "config.h" #include +#include "config.h" #endif -#include "org_apache_hadoop_io_compress_snappy.h" #include "org_apache_hadoop_io_compress_snappy_SnappyDecompressor.h" static jfieldID SnappyDecompressor_clazz;