[Nagiosplug-devel] [ nagiosplug-Bugs-1374705 ] check_swap.c compile fails -- FLOORF

SourceForge.net noreply at sourceforge.net
Wed Dec 7 07:14:25 CET 2005


Bugs item #1374705, was opened at 2005-12-06 18:47
Message generated for change (Comment added) made by tonvoon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1374705&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Compilation
Group: CVS
Status: Open
>Resolution: Fixed
Priority: 5
Submitted By: Jon Vandegrift (jvande)
>Assigned to: Ton Voon (tonvoon)
Summary: check_swap.c compile fails -- FLOORF

Initial Comment:
>From CVS file nagios-plugins-HEAD-200512051252

check_swap.c fails to compile & link on Solaris 9.

The MATH.H in solaris does not contain FLOORF function.

Either switch to FLOOR, or test for Solaris 
during ./configure and deal with lack of FLOORF with 
conditional statements.

you could try something like...

#if defined(__sun) || defined(__sun__)
static inline float floorf (float x) { return floor 
(x); }
#endif




----------------------------------------------------------------------

>Comment By: Ton Voon (tonvoon)
Date: 2005-12-07 15:11

Message:
Logged In: YES 
user_id=664364

Jon,

Thanks for the report. Applied in CVS now. 

Ton

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1374705&group_id=29880




More information about the Devel mailing list