On 3/20/07, Julius Malkiewicz <jpmalkiewicz@gmail.com> wrote:> I would like to use the gettimeofday() call to do some timing - but > it is invoked optionally, therefore it is _not_ required. I'm aware > that different unix(es) have different header files to include to get > to the gettimeofday() syscall - on linux it is <sys/time.h>. > > How do I modify the autoconf files to get me to include the correct file?I think we already have some autoconf tests for the time header files, so try this: #include "timehead.h" -- - Charles Lepple
Julius Malkiewicz
2007-Mar-22 01:59 UTC
[Nut-upsdev] Re: gamatronic/sec driver: gettimeofday
On 3/21/07, Charles Lepple <clepple@gmail.com> wrote:> On 3/20/07, Julius Malkiewicz <jpmalkiewicz@gmail.com> wrote: > I think we already have some autoconf tests for the time header files, > so try this: > > #include "timehead.h"Yep - perfect!. Thanks! - Julius.