From f453071251eaa9dcf29551692dd3b60c6d1569c0 Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Fri, 10 Aug 2012 16:54:42 +0930 Subject: [PATCH] Fix compilation in the non-JNI case --- commandline.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commandline.c b/commandline.c index 2f8d3198..b36704e5 100644 --- a/commandline.c +++ b/commandline.c @@ -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 argument when invoked via JNI"); +#endif execpath = exec_argv0; } /* Create the instance directory if it does not yet exist */