From 683d3c0cf8c86fb6626e9e85fc0bb99a27833280 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Sat, 4 May 2019 01:25:22 +0100 Subject: Consistently use X_GETTIMEOFDAY After 7ad730d8, use X_GETTIMEOFDAY() in Initialize() as well as clock_tic(), to fix compilation on non-POSIX systems where the gymnastics that X_GETTIMEOFDAY does are necessary (i.e. Win32) --- Clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Clock.c b/Clock.c index 64284bf..3261208 100644 --- a/Clock.c +++ b/Clock.c @@ -613,7 +613,7 @@ Initialize (Widget request, Widget new, ArgList args, Cardinal *num_args) } #endif /* NO_I18N */ - (void) gettimeofday(&tv, NULL); + X_GETTIMEOFDAY(&tv); tm = *localtime(&tv.tv_sec); str = TimeString (w, &tm); len = strlen(str); -- cgit v1.2.3