owen pointed out a problem with the ftime fix, gettimeofday() was not

* configure.in xmllint.c: owen pointed out a problem with the
ftime fix, gettimeofday() was not detected by configure and
the ftime header wasn't included, dohhh
Daniel
This commit is contained in:
Daniel Veillard 2002-03-07 15:12:58 +00:00
parent 8c1ae606be
commit 90bc371716
3 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,9 @@
Thu Mar 7 16:11:35 CET 2002 Daniel Veillard <daniel@veillard.com>
* 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 <daniel@veillard.com>
* configure.in xmllint.c: trying to fix #71457 for timing

View File

@ -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

View File

@ -29,6 +29,9 @@
#endif
#endif /* _WIN32 */
#ifdef HAVE_SYS_TIMEB_H
#include <sys/timeb.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
@ -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