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

Commit

Permalink
Solaris: fix readdir for x64 OS.
Browse files Browse the repository at this point in the history
  • Loading branch information
nykytenko committed May 8, 2016
1 parent b25dac9 commit 76f6640
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/core/sys/posix/dirent.d
Expand Up @@ -180,14 +180,21 @@ else version (Solaris)
char* dd_buf;
}

static if (__USE_LARGEFILE64)
version (D_LP64)
{
dirent* readdir64(DIR*);
alias readdir64 readdir;
dirent* readdir(DIR*);
}
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 76f6640

Please sign in to comment.