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

Commit

Permalink
fix __USE_FILE_OFFSET64 usage
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak authored and kyllingstad committed Mar 14, 2013
1 parent 1954cc7 commit 8e45f30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/sys/posix/sys/resource.d
Expand Up @@ -11,7 +11,7 @@ version (Posix):

public import core.sys.posix.sys.time;
public import core.sys.posix.sys.types: id_t;
import core.stdc.config;
import core.sys.posix.config;

nothrow extern(C):

Expand Down Expand Up @@ -83,12 +83,12 @@ version (linux)
PRIO_USER = 2,
}

version (__USE_FILE_OFFSET64)
static if (__USE_FILE_OFFSET64)
alias ulong rlim_t;
else
alias c_ulong rlim_t;

version (__USE_FILE_OFFSET64)
static if (__USE_FILE_OFFSET64)
enum RLIM_INFINITY = 0xffffffffffffffffUL;
else
enum RLIM_INFINITY = cast(c_ulong)(~0UL);
Expand Down

0 comments on commit 8e45f30

Please sign in to comment.