Skip to content

Commit e2d6559

Browse files
committed
phobos: Fixes for GNU/Hurd.
1 parent 708ffe7 commit e2d6559

4 files changed

Lines changed: 5 additions & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ else
305305
endif
306306

307307
# build with shared library support (defaults to true on supported platforms)
308-
SHARED=$(if $(findstring $(OS),linux freebsd),1,)
308+
SHARED=$(if $(findstring $(OS),linux freebsd hurd),1,)
309309

310310
TESTS_EXTRACTOR=$(ROOT)/tests_extractor$(DOTEXE)
311311
PUBLICTESTS_DIR=$(ROOT)/publictests

std/datetime/timezone.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ public:
338338
else version (linux) enum utcZone = "UTC";
339339
else version (Darwin) enum utcZone = "UTC";
340340
else version (Solaris) enum utcZone = "UTC";
341+
else version (Hurd) enum utcZone = "UTC";
341342
else static assert(0, "The location of the UTC timezone file on this Posix platform must be set.");
342343

343344
auto tzs = [testTZ("America/Los_Angeles", "PST", "PDT", dur!"hours"(-8), dur!"hours"(1)),

std/math/algebraic.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,7 @@ else version (FreeBSD) version = GenericPosixVersion;
631631
else version (OpenBSD) version = GenericPosixVersion;
632632
else version (Solaris) version = GenericPosixVersion;
633633
else version (DragonFlyBSD) version = GenericPosixVersion;
634+
else version (Hurd) version = GenericPosixVersion;
634635

635636
private real polyImpl(real x, in real[] A) @trusted pure nothrow @nogc
636637
{

std/process.d

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,8 @@ private Pid spawnProcessPosix(scope const(char[])[] args,
10311031
import core.sys.freebsd.unistd : closefrom;
10321032
else version (OpenBSD)
10331033
import core.sys.openbsd.unistd : closefrom;
1034+
else version (Hurd)
1035+
import core.sys.hurd.unistd : closefrom;
10341036

10351037
static if (!__traits(compiles, closefrom))
10361038
{

0 commit comments

Comments
 (0)