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 /src/time | |
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 'src/time')
-rw-r--r-- | src/time/timespec_get.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/time/timespec_get.c b/src/time/timespec_get.c index 40ea9c1c..e396da09 100644 --- a/src/time/timespec_get.c +++ b/src/time/timespec_get.c @@ -1,3 +1,4 @@ +#define _BSD_SOURCE #include <time.h> /* There is no other implemented value than TIME_UTC; all other values |