time_t and __time_t definition for 64 bit on FreeBSD

A size of time_t and __time_t is different from 32bit and 64 bit system on FreeBSD.
This commit is contained in:
Sohgo Takeuchi 2011-09-15 19:11:43 +09:00
parent 7f64d62af9
commit 513744080c

View file

@ -14,8 +14,6 @@ private import std.c.stdio;
alias uint fflags_t;
alias int clockid_t;
alias int time_t;
alias int __time_t;
alias int pid_t;
alias long off_t;
alias long blkcnt_t;
@ -31,6 +29,15 @@ alias uint uid_t;
alias ulong fsblkcnt_t;
alias ulong fsfilcnt_t;
version( X86 ) {
alias int time_t;
alias int __time_t;
}
else version( X86_64 ) {
alias long time_t;
alias long __time_t;
}
struct timespec
{
time_t tv_sec;