diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2002-03-07 15:12:58 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2002-03-07 15:12:58 +0000 |
commit | 90bc3717169db8038a1164f9c0410ce1134f4f8f (patch) | |
tree | 8937e843f16faaf99bd2fdd93849397775862b6e /xmllint.c | |
parent | 8c1ae606be9844a8bede7afd300500e6522e8560 (diff) | |
download | libxml2-90bc3717169db8038a1164f9c0410ce1134f4f8f.tar.gz |
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
Diffstat (limited to 'xmllint.c')
-rw-r--r-- | xmllint.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |