Merge pull request #83 from vibe-d/s-ludwig-patch-1

Add Solaris definition for O_CLOEXEC. Fixes #82.
This commit is contained in:
Sönke Ludwig 2018-08-29 23:16:47 +02:00 committed by GitHub
commit 491e100ef5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,7 @@ version (Posix) {
{ {
version (linux) enum O_CLOEXEC = 0x80000; version (linux) enum O_CLOEXEC = 0x80000;
else version (FreeBSD) enum O_CLOEXEC = 0x100000; else version (FreeBSD) enum O_CLOEXEC = 0x100000;
else version (Solaris) enum O_CLOEXEC = 0x800000;
else version (DragonFlyBSD) enum O_CLOEXEC = 0x0020000; else version (DragonFlyBSD) enum O_CLOEXEC = 0x0020000;
else version (NetBSD) enum O_CLOEXEC = 0x400000; else version (NetBSD) enum O_CLOEXEC = 0x400000;
else version (OpenBSD) enum O_CLOEXEC = 0x10000; else version (OpenBSD) enum O_CLOEXEC = 0x10000;