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

Commit b4dc443

Browse files
authored
Merge pull request #3144 from ibuclaw/solariself
core.internal.elf: Add support for Solaris and NetBSD Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com> Merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2 parents 8d9a6d9 + d1f7ced commit b4dc443

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/core/internal/elf/dl.d

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,21 @@ else version (DragonFlyBSD)
2626
import core.sys.dragonflybsd.sys.link_elf;
2727
version = LinuxOrBSD;
2828
}
29+
else version (NetBSD)
30+
{
31+
import core.sys.netbsd.sys.link_elf;
32+
version = LinuxOrBSD;
33+
}
2934
else version (OpenBSD)
3035
{
3136
import core.sys.openbsd.sys.link_elf;
3237
version = LinuxOrBSD;
3338
}
39+
else version (Solaris)
40+
{
41+
import core.sys.solaris.link;
42+
version = LinuxOrBSD;
43+
}
3444

3545
version (LinuxOrBSD):
3646

@@ -82,6 +92,7 @@ struct SharedObject
8292
version (linux) enum IterateManually = true;
8393
else version (NetBSD) enum IterateManually = true;
8494
else version (OpenBSD) enum IterateManually = true;
95+
else version (Solaris) enum IterateManually = true;
8596
else enum IterateManually = false;
8697

8798
static if (IterateManually)

src/core/internal/elf/io.d

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,21 @@ else version (DragonFlyBSD)
3434
import core.sys.dragonflybsd.sys.link_elf;
3535
version = LinuxOrBSD;
3636
}
37+
else version (NetBSD)
38+
{
39+
import core.sys.netbsd.sys.link_elf;
40+
version = LinuxOrBSD;
41+
}
3742
else version (OpenBSD)
3843
{
3944
import core.sys.openbsd.sys.link_elf;
4045
version = LinuxOrBSD;
4146
}
47+
else version (Solaris)
48+
{
49+
import core.sys.solaris.link;
50+
version = LinuxOrBSD;
51+
}
4252

4353
/**
4454
* File-based memory-mapped I/O (read-only).

0 commit comments

Comments
 (0)