Fix compilation in the non-JNI case

This commit is contained in:
Daniel O'Connor 2012-08-10 16:54:42 +09:30
parent 6981e7e2c2
commit f453071251

View File

@ -591,8 +591,10 @@ int app_server_start(int argc, const char *const *argv, struct command_line_opti
serval_setinstancepath(instancepath);
if (execpath == NULL) {
#ifdef HAVE_JNI_H
if (jni_env)
return WHY("Must supply <exec path> argument when invoked via JNI");
#endif
execpath = exec_argv0;
}
/* Create the instance directory if it does not yet exist */