diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-04-17 21:03:15 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-05-05 21:21:37 -0500 |
commit | b1e554e906de3486d5ee82903cb61d4bfc6d4fab (patch) | |
tree | 1a36d3103855418c783fb41b94c38a6c505b5bfb /compat/time32 | |
parent | 41735bdeff548ce44afe21aa21f1345047eb18e4 (diff) | |
download | musl-b1e554e906de3486d5ee82903cb61d4bfc6d4fab.tar.gz musl-b1e554e906de3486d5ee82903cb61d4bfc6d4fab.tar.bz2 musl-b1e554e906de3486d5ee82903cb61d4bfc6d4fab.tar.xz musl-b1e554e906de3486d5ee82903cb61d4bfc6d4fab.zip |
time: C11 visibility fixes
The timespec_get function, and TIME_* macros, are only in C11.
Since musl is compiled with -std=c99, TIME_UTC is unavailable in the
timespec_get implementation, so we use the raw value 1.
Diffstat (limited to 'compat/time32')
-rw-r--r-- | compat/time32/timespec_get_time32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compat/time32/timespec_get_time32.c b/compat/time32/timespec_get_time32.c index e9ca94cb..b39b12ee 100644 --- a/compat/time32/timespec_get_time32.c +++ b/compat/time32/timespec_get_time32.c @@ -1,3 +1,4 @@ +#define _BSD_SOURCE #include "time32.h" #include <time.h> #include <errno.h> |