mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 09:33:27 +01:00
Apply BlueZeniX's patch for OpenSolaris compatibility. Fixes #158.
This commit is contained in:
@@ -73,6 +73,13 @@ private
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
version( solaris ) {
|
||||
version(X86_64) {
|
||||
extern (C) void* _userlimit;
|
||||
}
|
||||
}
|
||||
|
||||
extern (C) void* rt_stackBottom()
|
||||
{
|
||||
version( Win32 )
|
||||
@@ -110,6 +117,16 @@ extern (C) void* rt_stackBottom()
|
||||
// darwin has a fixed stack bottom
|
||||
return cast(void*) 0xc0000000;
|
||||
}
|
||||
else version( solaris )
|
||||
{
|
||||
version(X86_64) {
|
||||
return _userlimit;
|
||||
}
|
||||
else {
|
||||
// <sys/vmparam.h>
|
||||
return cast(void*) 0x8048000;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
static assert( false, "Operating system not supported." );
|
||||
|
||||
Reference in New Issue
Block a user