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 #479 from klickverbot/osx-statvfs
Browse files Browse the repository at this point in the history
Fixed 2.062 OS X regression introduced by 830e077.
  • Loading branch information
alexrp committed May 3, 2013
2 parents e454ea9 + f1e190c commit 96a70fb
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions src/core/sys/posix/sys/statvfs.d
Expand Up @@ -68,6 +68,21 @@ version(linux) {
ST_NOSUID = 2
}
}

static if( __USE_FILE_OFFSET64 )
{
int statvfs64 (const char * file, statvfs_t* buf);
alias statvfs64 statvfs;

int fstatvfs64 (int fildes, statvfs_t *buf);
alias fstatvfs64 fstatvfs;
}
else
{
int statvfs (const char * file, statvfs_t* buf);
int fstatvfs (int fildes, statvfs_t *buf);
}

}
else
{
Expand All @@ -91,18 +106,7 @@ else
ST_RDONLY = 1, /* Mount read-only. */
ST_NOSUID = 2
}
}

static if( __USE_FILE_OFFSET64 )
{
int statvfs64 (const char * file, statvfs_t* buf);
alias statvfs64 statvfs;

int fstatvfs64 (int fildes, statvfs_t *buf);
alias fstatvfs64 fstatvfs;
}
else
{
int statvfs (const char * file, statvfs_t* buf);
int fstatvfs (int fildes, statvfs_t *buf);
int statvfs (const char * file, statvfs_t* buf);
int fstatvfs (int fildes, statvfs_t *buf);
}

0 comments on commit 96a70fb

Please sign in to comment.