diff --git a/ChangeLog b/ChangeLog index 1ef5d258..6b33d65b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Mar 7 16:11:35 CET 2002 Daniel Veillard + + * configure.in xmllint.c: owen pointed out a problem with the + ftme fix, gettimeofday() was not detected by configure and + the ftime header wasn't included, dohhh + Thu Mar 7 12:19:36 CET 2002 Daniel Veillard * configure.in xmllint.c: trying to fix #71457 for timing diff --git a/configure.in b/configure.in index 0c12048f..6efb5241 100644 --- a/configure.in +++ b/configure.in @@ -102,7 +102,7 @@ dnl Checks for library functions. AC_FUNC_STRFTIME AC_CHECK_FUNCS(strdup strndup strerror) AC_CHECK_FUNCS(finite isnand fp_class class fpclass) -AC_CHECK_FUNCS(strftime localtime ftime) +AC_CHECK_FUNCS(strftime localtime gettimeofday ftime) AC_CHECK_FUNCS(stat _stat signal) dnl Checking the standard string functions availability diff --git a/xmllint.c b/xmllint.c index eed22b0b..0d0eed3b 100644 --- a/xmllint.c +++ b/xmllint.c @@ -29,6 +29,9 @@ #endif #endif /* _WIN32 */ +#ifdef HAVE_SYS_TIMEB_H +#include +#endif #ifdef HAVE_SYS_TYPES_H #include @@ -192,12 +195,14 @@ endTimer(const char *format, ...) fprintf(stderr, " took %ld ms\n", msec); } #elif defined(HAVE_TIME_H) - /* * No gettimeofday function, so we have to make do with calling clock. * This is obviously less accurate, but there's little we can do about * that. */ +#ifndef CLOCKS_PER_SEC +#define CLOCKS_PER_SEC 100 +#endif static clock_t begin, end; static void