[Nagiosplug-help] Solaris 8 and the plugins...
Karl DeBisschop
karl at debisschop.net
Wed Nov 13 20:10:04 CET 2002
On Thu, 2002-11-07 at 12:18, Ewan Leith wrote:
> same problem occurs in aix, its the configure script not picking up on the
> correct definitions of gettimeofday for non-linux machines.
>
> quick fix is to go into plugins/utils.h and remove/comment out the entire
> #ifdef related to the struct timeval:
>
> /* generalized timer that will do milliseconds if available */
> #ifndef HAVE_GETTIMEOFDAY
> struct timeval {
> long tv_sec; /* seconds */
> long tv_usec; /* microseconds */
> };
>
> #define gettimeofday (tvp,tz) {\
> tvp->tv_usec=0;\
> tvp->tv_sec=(long)time();\
> }
> #endif
This should be fixed now. Has been tested to build and run on Solaris 8.
Look in CVS or snapshots for new code.
--
Karl DeBisschop <karl at debisschop.net>
More information about the Help
mailing list