From 39826fbb1e6e6992a8c471e248085b6032c47fbf Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 25 Dec 2017 22:19:03 -0500 Subject: [PATCH] Add musl libc definitions to: src_core_sys_posix_stdlib --- src/core/sys/posix/stdlib.d | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/core/sys/posix/stdlib.d b/src/core/sys/posix/stdlib.d index 3d239469f2..919f57c70f 100644 --- a/src/core/sys/posix/stdlib.d +++ b/src/core/sys/posix/stdlib.d @@ -179,6 +179,11 @@ else version( Solaris ) void* valloc(size_t); // LEGACY non-standard } +else version( CRuntime_Musl ) +{ + int setenv(in char*, in char*, int); + int unsetenv(in char*); +} // // Thread-Safe Functions (TSF) @@ -493,6 +498,13 @@ else version( CRuntime_Bionic ) void srandom(uint s) { srand48(s); } int unlockpt(int); } +else version( CRuntime_Musl ) +{ + char* realpath(in char*, char*); + int putenv(char*); + int mkstemp(char*); + +} else version( Solaris ) { //WNOHANG (defined in core.sys.posix.sys.wait)