Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 9e5dd2d

Browse files
authored
Merge pull request #2009 from yshui/musl_libc_src_core_sys_posix_sys_time
Add musl libc definitions to: src_core_sys_posix_sys_time merged-on-behalf-of: Iain Buclaw <ibuclaw@gdcproject.org>
2 parents 382b759 + f20e4a9 commit 9e5dd2d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/core/sys/posix/sys/time.d

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@ version( CRuntime_Glibc )
8282
int setitimer(int, in itimerval*, itimerval*);
8383
int utimes(in char*, ref const(timeval)[2]); // LEGACY
8484
}
85+
else version( CRuntime_Musl )
86+
{
87+
struct timeval
88+
{
89+
time_t tv_sec;
90+
suseconds_t tv_usec;
91+
}
92+
int gettimeofday(timeval*, void*);
93+
}
8594
else version( Darwin )
8695
{
8796
struct timeval

0 commit comments

Comments
 (0)