Posix targets should now build correctly against the core.stdc chages.

This commit is contained in:
Sean Kelly 2009-03-25 14:53:41 +00:00
parent 5ae67f23ac
commit 7de36d8138
3 changed files with 3 additions and 9 deletions

View file

@ -502,13 +502,6 @@ extern(C)
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
const int NFDBITS = 32;

View file

@ -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;

View file

@ -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)
{