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:
parent
e92107b18f
commit
e2d46ac5a4
|
@ -552,6 +552,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
HADOOP-12274. Remove direct download link from BULIDING.txt.
|
HADOOP-12274. Remove direct download link from BULIDING.txt.
|
||||||
(Caleb Severn via aajisaka)
|
(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
|
Release 2.7.2 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -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.
|
* Initialises a list of java constants that are platform specific.
|
||||||
* These are only initialized in UNIX.
|
* 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_IWUSR);
|
||||||
SET_INT_OR_RETURN(env, clazz, S_IXUSR);
|
SET_INT_OR_RETURN(env, clazz, S_IXUSR);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void stat_init(JNIEnv *env, jclass nativeio_class) {
|
static void stat_init(JNIEnv *env, jclass nativeio_class) {
|
||||||
jclass clazz = NULL;
|
jclass clazz = NULL;
|
||||||
|
|
Loading…
Reference in New Issue