gpsd-users
[Top][All Lists]
Advanced

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

Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c


From: Eric S. Raymond
Subject: Re: [gpsd-users] Error while compiling NAN undeclared in gpsdclient.c
Date: Tue, 8 May 2012 02:33:49 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

Bas van Duijnhoven <address@hidden>:
> Hello Gary and all other readers of this thread,
> 
> I'm glad to say that i've fixed the compilation error (NAN not defined).
> Not by changing the #DEFINE in nan.h but by changing the source code
> of gpsdclient.c.
> 
> I changed line 323 in gpsdclient.c from
>         heading = NAN;
> to
>         heading = nan("");
> 
> This change to using a C99 function instead of a define is in my
> opinion a bit more elegant.
> But im not exactly sure if the behaviour is still ok.
> In any case the result is a error free compiled gspd.
> 
> Can anyone verify the change, of give me some pointers as to test
> this change?

This change looks correct, but I'm puzzled as to why it's needed.  What
environment are you building for?
-- 
                <a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>



reply via email to

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