HADOOP-12302. Fix native compilation on Windows after HADOOP-7824 (Vinayakumar B via Colin P. McCabe)

(cherry picked from commit 4ab49a4365)
This commit is contained in:
Colin Patrick Mccabe 2015-08-05 09:46:51 -07:00
parent e92107b18f
commit e2d46ac5a4
2 changed files with 5 additions and 0 deletions

View File

@ -552,6 +552,9 @@ Release 2.8.0 - UNRELEASED
HADOOP-12274. Remove direct download link from BULIDING.txt.
(Caleb Severn via aajisaka)
HADOOP-12302. Fix native compilation on Windows after HADOOP-7824
(Vinayakumar B via Colin P. McCabe)
Release 2.7.2 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -132,6 +132,7 @@ static void setStaticInt(JNIEnv *env, jclass clazz, char *field,
}
}
#ifdef UNIX
/**
* Initialises a list of java constants that are platform specific.
* These are only initialized in UNIX.
@ -187,6 +188,7 @@ static void consts_init(JNIEnv *env) {
SET_INT_OR_RETURN(env, clazz, S_IWUSR);
SET_INT_OR_RETURN(env, clazz, S_IXUSR);
}
#endif
static void stat_init(JNIEnv *env, jclass nativeio_class) {
jclass clazz = NULL;