From 8a22fc4c7d74012520cb510aecccfc71cafecac1 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 7 Dec 2013 09:03:59 -0500 Subject: [PATCH] examples/parse_args.h: only use jack where need be --- examples/parse_args.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/parse_args.h b/examples/parse_args.h index 0708c5e7..66c47b14 100644 --- a/examples/parse_args.h +++ b/examples/parse_args.h @@ -215,13 +215,18 @@ parse_args (int argc, char **argv) // if no source, show a message if (source_uri == NULL) { +#ifdef PROG_HAS_JACK #if HAVE_JACK verbmsg("No input source given, using jack\n"); usejack = 1; #else errmsg("Error: no arguments given (and no available audio input)\n"); usage ( stderr, 1 ); -#endif +#endif /* HAVE_JACK */ +#else + errmsg("Error: no arguments given\n"); + usage ( stderr, 1 ); +#endif /* PROG_HAS_JACK */ } return 0; -- 2.11.0