tlf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tlf-devel] non-hamlib


From: Jason Wright
Subject: Re: [Tlf-devel] non-hamlib
Date: Tue, 1 Nov 2005 12:13:48 -0500
User-agent: Mutt/1.5.9i

On Tue, Nov 01, 2005 at 11:57:25AM -0500, Jason Wright wrote:
> Not sure exactly what the intent in this code is, but trying to compile
> tlf w/out hamlib support doesn't work without this (undefined reference
> to rignum).
> 
> Patch below is against 0.9.24

*sigh*  Better patch... this one allows hamlib-enabled and hamlib-disabled
tlf to compile.  Still against 0.9.24

--Jason L. Wright

--- src/callinput.c.orig        Mon Oct 24 03:45:17 2005
+++ src/callinput.c     Tue Nov  1 12:08:27 2005
@@ -66,6 +66,7 @@ extern float freq;
 extern float mem;
 #ifdef HAVE_LIBHAMLIB
 extern freq_t outfreq;
+extern int rignumber;
 #else
 extern int outfreq;
 #endif
@@ -258,7 +259,7 @@ printcall();
                                        mvprintw(12, 0, band[bandinx]);
                                        printcall();
                                        i--;
-#ifdef HAVE_LIBHAMLIB
+#ifndef HAVE_LIBHAMLIB
                                        if (trx_control == 1) {
 
                                                outfreq = (int) 
(bandfrequency[bandinx] * 1000)    ;
@@ -297,7 +298,7 @@ printcall();
                                        attron(A_STANDOUT);
                                        mvprintw(12, 29 +  strlen(hiscall), "");
 
-#ifdef HAVE_LIBHAMLIB
+#ifndef HAVE_LIBHAMLIB
 
                                                if (trx_control == 1) {
                                                        freq = 
bandfrequency[bandinx];




reply via email to

[Prev in Thread] Current Thread [Next in Thread]