Apply BlueZeniX's patch for OpenSolaris compatibility. Fixes #158.

This commit is contained in:
Christian Kamm
2009-01-04 15:49:28 +01:00
parent 955df981f8
commit e7f750aee1
12 changed files with 57 additions and 4 deletions

View File

@@ -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." );