From 7de36d8138601d3ecec6f08b9f68268a686cf13c Mon Sep 17 00:00:00 2001 From: Sean Kelly Date: Wed, 25 Mar 2009 14:53:41 +0000 Subject: [PATCH] Posix targets should now build correctly against the core.stdc chages. --- std/c/linux/linux.d | 9 +-------- std/mmfile.d | 1 + std/path.d | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/std/c/linux/linux.d b/std/c/linux/linux.d index af3be486e..8a6a69c75 100644 --- a/std/c/linux/linux.d +++ b/std/c/linux/linux.d @@ -500,14 +500,7 @@ extern(C) int select(int nfds, fd_set* readfds, fd_set* writefds, fd_set* errorfds, timeval* timeout); int fcntl(int s, int f, ...); - - - enum - { - EINTR = 4, - EINPROGRESS = 115, - } - + const uint FD_SETSIZE = 1024; //const uint NFDBITS = 8 * int.sizeof; // DMD 0.110: 8 * (int).sizeof is not an expression diff --git a/std/mmfile.d b/std/mmfile.d index 3ba7a2a83..38ae482b6 100644 --- a/std/mmfile.d +++ b/std/mmfile.d @@ -34,6 +34,7 @@ module std.mmfile; private import std.file; private import std.c.stdio; private import std.c.stdlib; +private import core.stdc.errno; private import std.path; private import std.string; diff --git a/std/path.d b/std/path.d index 5daca115f..c4be64da6 100644 --- a/std/path.d +++ b/std/path.d @@ -1229,7 +1229,7 @@ private string expandFromDatabase(string path) // Obtain info from database. passwd *verify; - std.c.stdlib.setErrno(0); + setErrno(0); if (getpwnam_r(username.ptr, &result, extra_memory, extra_memory_size, &verify) == 0) {