Command syntax problem

Charles Hewson cahewson at eskimo.com
Sat Sep 25 21:28:48 CEST 2004


On Sat, 25 Sep 2004, David Relson wrote:

> On Sat, 25 Sep 2004 08:16:05 -0700 (PDT)
> Charles Hewson wrote:
>
> ....[snip]...
>
> > [cahewson] find /usr/include -name "*.h" -print | xargs grep strtod
> > find: cannot chdir to /usr/include/openssl: Permission denied
> > /usr/include/floatingpoint.h:extern double   strtod();
> > [cahewson]
> >
> > #include <floatingpoint.h>
> >
> > This also works.
>
> Charles,
>
> We're getting closer!
>
> I could add something like:
>
> #ifdef __SunOS___
> #include <floatingpoint.h>
> #endif
>
> However this seems like a low level include and __SunOS__ is just a
> guess as to preprocessor symbol.
>
> What other headers in /usr/include reference floatingpoint.h?  It'd be
> better if xatof.c had a #include for math.h or unistd.h (if they work).
>
> David
> _______________________________________________
> Bogofilter mailing list
> Bogofilter at bogofilter.org
> http://www.bogofilter.org/mailman/listinfo/bogofilter
>
#include <math.h>

Above works and I do not beleive the ifdef would be necessary.

Charles




More information about the Bogofilter mailing list