Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1566 from nykytenko/solaris
Browse files Browse the repository at this point in the history
Solaris: fix readdir for x64 OS.
  • Loading branch information
MartinNowak committed May 8, 2016
2 parents 8e09c99 + 9ac8554 commit 65967a9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/core/sys/posix/dirent.d
Expand Up @@ -180,14 +180,22 @@ else version (Solaris)
char* dd_buf;
}

static if (__USE_LARGEFILE64)
version (D_LP64)
{
dirent* readdir64(DIR*);
alias readdir64 readdir;
dirent* readdir(DIR*);
alias readdir64 = readdir;
}
else
{
dirent* readdir(DIR*);
static if (__USE_LARGEFILE64)
{
dirent* readdir64(DIR*);
alias readdir64 readdir;
}
else
{
dirent* readdir(DIR*);
}
}
}
else version( CRuntime_Bionic )
Expand Down

0 comments on commit 65967a9

Please sign in to comment.