summaryrefslogtreecommitdiff
path: root/Clock.c
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2019-05-04 01:25:22 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2019-05-04 23:25:59 +0100
commit683d3c0cf8c86fb6626e9e85fc0bb99a27833280 (patch)
treede77d6cba00c3aef4e2482de365a3af8f4d30caf /Clock.c
parentd528eca772620bc06c182e03265fc5f70a4d35f7 (diff)
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)
Diffstat (limited to 'Clock.c')
-rw-r--r--Clock.c2
1 files changed, 1 insertions, 1 deletions
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);