HADOOP-12302. Fix native compilation on Windows after HADOOP-7824 (Vinayakumar B via Colin P. McCabe)
This commit is contained in:
parent
6f83274afc
commit
4ab49a4365
|
@ -1050,6 +1050,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