mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-26 00:37:43 +03:00
xmllint: Build fix for endTimer if !defined(HAVE_GETTIMEOFDAY)
For https://bugzilla.gnome.org/show_bug.cgi?id=638649 code was broken !
This commit is contained in:
committed by
Daniel Veillard
parent
a4fe9b26d3
commit
023206fc08
@@ -520,10 +520,11 @@ endTimer(char *format, ...)
|
|||||||
* We cannot do anything because we don't have a timing function
|
* We cannot do anything because we don't have a timing function
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_STDARG_H
|
#ifdef HAVE_STDARG_H
|
||||||
|
va_list ap;
|
||||||
va_start(ap, format);
|
va_start(ap, format);
|
||||||
vfprintf(stderr, format, ap);
|
vfprintf(stderr, format, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
fprintf(stderr, " was not timed\n", msec);
|
fprintf(stderr, " was not timed\n");
|
||||||
#else
|
#else
|
||||||
/* We don't have gettimeofday, time or stdarg.h, what crazy world is
|
/* We don't have gettimeofday, time or stdarg.h, what crazy world is
|
||||||
* this ?!
|
* this ?!
|
||||||
|
|||||||
Reference in New Issue
Block a user