mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 14:10:30 +03:00
Posix targets should now build correctly against the core.stdc chages.
This commit is contained in:
parent
5ae67f23ac
commit
7de36d8138
3 changed files with 3 additions and 9 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue