diff options
author | Ron Yorston <rmy@pobox.com> | 2022-04-22 15:26:59 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2022-04-22 15:39:42 +0100 |
commit | 037037df6cdc567132acbeeb2067c442f945889e (patch) | |
tree | 1bc314e37d3bc23f571a5a13ac847b45640e839a /include | |
parent | 3cbe64df41eb408740a59145c6318b71f47c4f6d (diff) | |
download | busybox-w32-037037df6cdc567132acbeeb2067c442f945889e.tar.gz busybox-w32-037037df6cdc567132acbeeb2067c442f945889e.tar.bz2 busybox-w32-037037df6cdc567132acbeeb2067c442f945889e.zip |
date: enable FEATURE_DATE_NANO
Provide a WIN32 implementation of clock_gettime(2), though only
with support for CLOCK_REALTIME. This makes it possible to enable
FEATURE_DATE_NANO which adds support for the %N date format.
MinGW-w64 has clock_gettime(2) but it's in the winpthreads library
and we don't want to bother with that.
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h index 06fb3b289..8a9610898 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -276,6 +276,7 @@ struct timespec { | |||
276 | time_t timegm(struct tm *tm); | 276 | time_t timegm(struct tm *tm); |
277 | 277 | ||
278 | int nanosleep(const struct timespec *req, struct timespec *rem); | 278 | int nanosleep(const struct timespec *req, struct timespec *rem); |
279 | int clock_gettime(clockid_t clockid, struct timespec *tp); | ||
279 | 280 | ||
280 | /* | 281 | /* |
281 | * sys/stat.h | 282 | * sys/stat.h |