瀏覽代碼

HADOOP-10925 Compilation fails in native link0 function on Windows.

Chris Nauroth 11 年之前
父節點
當前提交
b601e69d9d

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -337,6 +337,9 @@ Release 2.6.0 - UNRELEASED
     HADOOP-10937. Need to set version name correctly before decrypting EEK.
     (Arun Suresh via wang)
 
+    HADOOP-10925. Compilation fails in native link0 function on Windows.
+    (cnauroth)
+
     HADOOP-10918. JMXJsonServlet fails when used within Tomcat. (tucu)
 
     HADOOP-10939. Fix TestKeyProviderFactory testcases to use default 128 bit

+ 1 - 1
hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/nativeio/NativeIO.c

@@ -1114,7 +1114,7 @@ done:
   if (!src) goto done; // exception was thrown
   dst = (LPCTSTR) (*env)->GetStringChars(env, jdst, NULL);
   if (!dst) goto done; // exception was thrown
-  if (!CreateHardLink(dst, src)) {
+  if (!CreateHardLink(dst, src, NULL)) {
     throw_ioe(env, GetLastError());
   }