On Fri, 2013-11-01 at 13:45 -0700, Mike Stump wrote: > On Nov 1, 2013, at 12:56 PM, Steve Ellcey <sell...@mips.com> wrote: > >> You should report a bug to them and have them define clock_t. > > > > They are defining clock_t, but for some reason the GCC configure is not > > seeing it (perhaps because of what header files get included). > > Curious, do you have sys/time.h? If so, that's likely the cause, as system.h > does this: > > # if HAVE_SYS_TIME_H > # include <sys/time.h> > # else > # ifdef HAVE_TIME_H > # include <time.h> > # endif > # endif > > thus cleverly avoiding even including time.h when it exists. I suspect > TIME_WITH_SYS_TIME failed for some silly reason, though, can't guess why. > autoconf is fun when it fails.
Yes, mingw does have sys/time.h, but their sys/time.h includes <time.h> so it should work. And now when I try to reproduce the problem it seems to work. I am getting HAVE_CLOCK_T defined in auto-build.h and auto-host.h. Steve Ellcey sell...@mips.com