mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-10 04:19:58 +00:00
Fix compilation in the non-JNI case
This commit is contained in:
parent
6981e7e2c2
commit
f453071251
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user