From 6486fce3fa46fa5a127bd887aef5204e781dbd25 Mon Sep 17 00:00:00 2001 From: Thomas Beierlein Date: Sat, 10 Nov 2018 11:36:40 +0100 Subject: [PATCH] Fix dependy on hamlib The fix for 'SegV on mising RIGPORT' introduced some errors if hamlib support was not compiled in. --- src/sendqrg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sendqrg.c b/src/sendqrg.c index fe3f538bb..4f736aeeb 100644 --- a/src/sendqrg.c +++ b/src/sendqrg.c @@ -32,8 +32,10 @@ void send_bandswitch(int trxqrg); +#ifdef HAVE_LIBHAMLIB //code for Hamlib interface static int parse_rigconf(); static void debug_tlf_rig(); +#endif /* check if call input field contains a frequency value and switch to it. * @@ -223,8 +225,6 @@ static int parse_rigconf() { return 0; } -#endif // end code for Hamlib interface - static void debug_tlf_rig() { extern RIG *my_rig; freq_t rigfreq; @@ -267,3 +267,5 @@ static void debug_tlf_rig() { sleep(10); } + +#endif // end code for Hamlib interface