Warn users of Telechips devices that app will crash with their broken libc

This commit is contained in:
pelya
2011-06-22 16:43:22 +03:00
parent 4e214b0ffd
commit 819febb3af
10 changed files with 107 additions and 11 deletions

View File

@@ -803,3 +803,13 @@ int SDLCALL SDL_ANDROID_GetScreenKeyboardTextInput(char * textBuf, int textBufSi
return 1;
};
// That's probably not the right file to put this func
JNIEXPORT jint JNICALL
JAVA_EXPORT_NAME(Settings_nativeChmod) ( JNIEnv* env, jobject thiz, jstring j_name, jint mode )
{
jboolean iscopy;
const char *name = (*env)->GetStringUTFChars(env, j_name, &iscopy);
int ret = chmod(name, mode);
(*env)->ReleaseStringUTFChars(env, j_name, name);
return (ret == 0);
};