From 17095b0b3ef6704a0f681f9942e682b85c587f6d Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 25 Dec 2017 22:17:19 -0500 Subject: [PATCH] Add musl libc definitions to: src_core_stdc_time --- src/core/stdc/time.d | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/core/stdc/time.d b/src/core/stdc/time.d index 4325ca3429..294e6fadf7 100644 --- a/src/core/stdc/time.d +++ b/src/core/stdc/time.d @@ -107,6 +107,10 @@ else version (CRuntime_Glibc) { enum clock_t CLOCKS_PER_SEC = 1_000_000; } +else version (CRuntime_Musl) +{ + enum clock_t CLOCKS_PER_SEC = 1_000_000; +} else version (CRuntime_Bionic) { enum clock_t CLOCKS_PER_SEC = 1_000_000; @@ -194,6 +198,13 @@ else version( CRuntime_Bionic ) /// extern __gshared const(char)*[2] tzname; } +else version( CRuntime_Musl ) +{ + /// + void tzset(); // non-standard + /// + extern __gshared const(char)*[2] tzname; // non-standard +} else { static assert(false, "Unsupported platform");